Commit Graph
22 Commits
Author SHA1 Message Date
austin ab9675508a Convert hot-loop functions to be inline 2020-07-01 17:43:08 -07:00
austin 0203beb367 Modify lighting equations 2020-07-01 17:43:07 -07:00
austin 6dcbb35e86 Rename vertex point to vertex position 2020-07-01 17:43:06 -07:00
austin abf9e8fa7c Add specular lighting 2020-07-01 17:43:03 -07:00
austin e87546c8b1 Create EngineMemory structure 2020-07-01 17:43:02 -07:00
austin 84d096c246 Clean up structs and operators 2020-07-01 17:43:01 -07:00
austin b3991a4651 Modify lighting to use a point light 2020-07-01 17:43:00 -07:00
austin e29ad8b418 Add Length function to Vector 2020-07-01 17:42:59 -07:00
austin 0f73e2cd91 Clean up main engine loop 2020-07-01 17:42:57 -07:00
austin d26e4cb5dc Remove dynamically allocated memory 2020-07-01 17:42:56 -07:00
austin c3c154e4ff Add MTL file loading 2020-07-01 17:42:55 -07:00
austin 21fb0058ad Add bilinear filtering 2020-07-01 17:42:54 -07:00
austin 20402784f7 Add perspective-correct texture mapping 2020-07-01 17:42:53 -07:00
austin 370fb7bce0 Move backface culling out of Mesh struct
In the future the function will be able to take a list of meshes for a
data-oriented approach.
2020-07-01 17:42:53 -07:00
austin 8b9e6b54c8 Add Gouraud shading 2020-07-01 17:42:52 -07:00
austin 0c5cf83748 Convert triangle rasterization to use barycentric 2020-07-01 17:42:50 -07:00
austin 8ede3f1952 Add inverse z-buffering 2020-07-01 17:42:48 -07:00
austin 63e8bd1b93 Add flat shading with ambient and diffuse light 2020-07-01 17:42:47 -07:00
austin f642b0ec02 Add triangle filling with a solid color 2020-07-01 17:42:46 -07:00
austin 33cb124d77 Implement model-to-screen space transformations 2020-07-01 17:42:45 -07:00
austin c82f690943 Add OBJ file loading 2020-07-01 17:42:44 -07:00
austin b024d821f5 Add platform layer with hooks into engine 2020-07-01 17:42:43 -07:00