Posted July 07, 2020 by Slaps
#3d engine #love2d
Added simple lighting by calculating the dot product between the camera's forward vector and the tris of the given model. The dot product result gets used on the color function to determine how light or dark a triangle should be.
The Utah teapot is being used to bench mark the 3d engines performance. There is currently an average around of 30 fps with lighting, back face culling, and z- buffer sorting.