Lighting Implimented


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. 

Get 3D Projection Demo (Love2D)

Leave a comment

Log in with itch.io to leave a comment.