I'm fairly new to graphics (and wgpu) in general, and I've just built a simple playground containing a bunch of experiments -- from a little .obj loader to a basic model viewer.
After adding "shadow" to the model I started noticing that something was off, and then realized that I could see parts of the model right through it (first image).
At first I thought it had to do with the depth buffer but (I think) I set it up correctly (I followed sotrh wgpu tutorial to do it) and it still do not work. I'm so confused and kinda lost right now.
Things to consider:
- wgpu: v0.16
- winit: v0.28
- mesh was loaded from a .obj file using my custom loader
- For some reason using TriangleStrip instead of TriangleList seems to "work", all though it leaves those line fragments all over the model (second image).