Lighting Implimented
3D Projection Demo (Love2D) » Devlog
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)
3D Projection Demo (Love2D)
A program that reads and draws 3D models from .OBJ files
More posts
- Improvements and Optimizations to 3D engineJan 15, 2020
Leave a comment
Log in with itch.io to leave a comment.