The issue is that I can see through models and the world and see whats on the other side. When I look at the terrain I can see if there is anything through a mountain on the otherside and so on. This has happened before but I fixed it and don’t remember how. Any way to fix this?
Share
You probably need to fix the winding direction of your vertices. If you have them reversed by accident and backface culling is enabled, then you will see through these triangles. Winding direction is set as a
BOOLin D3D11_RASTERIZER_DESC‘sFrontCounterClockwisemember, and culling in itsCullMode(D3D11_CULL_MODE) memberUpdate: You may also have depth testing disabled, (which if disabled, would require you to draw furthest objects first, otherwise further items will draw over nearer ones already rendered (“painters algorithm”)). Make sure you have depth testing enabled in your depth stencil state (D3D11_DEPTH_STENCIL_DESC) when you create it.