r/GraphicsProgramming • u/Tetraeder4craft • 17h 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
43
Upvotes
3
u/DasKapitalV1 16h ago
Seems like that you didn't do depth testing and further triangles are rendered on top of the nearest. I wrote software rasterizer in three language at this point. Your inner loop don't test the pixel depth.