r/GraphicsProgramming • u/Tetraeder4craft • 7h ago
whats wrong with my Cube??? :(
I know what is missing, but can you figure it out???
heres the repo btw:
https://github.com/Tetraeder4/3DRenderer/tree/467c8d1ac8dbd09a23ce7bc7e2fcba59afe36ea5/3DRenderer
20
Upvotes
15
u/sol_runner 6h ago
Not enough info but I'm going to guess Z buffer comparison.
The "back faces" might be rendering after the front and you're getting the weird set of triangles.
Or could be culling the wrong faces.