Commit Graph

26 Commits

Author SHA1 Message Date
duarteapcoelho df09c12c07 Clip models 2022-12-08 20:46:42 +00:00
duarteapcoelho 98f79eeb05 Do backface culling before anything else 2022-12-08 17:06:40 +00:00
duarteapcoelho 136e536544 Make depth buffer 8 bit 2022-12-08 15:44:53 +00:00
duarteapcoelho 7aaaace43b Use a simpler triangle rasterization algorithm 2022-11-29 20:25:58 +00:00
duarteapcoelho 96c4b8bdcf Add gint target 2022-11-27 09:09:14 +00:00
duarteapcoelho 9749f08077 Optimize rendering
Reduce index calculations
Draw the grass without using triangles
Reduce the number of cones
Clear the screen using 32 bit writes
2022-11-24 21:45:04 +00:00
duarteapcoelho 0b11ffac4c Add back-face culling 2022-11-16 14:58:28 +00:00
duarteapcoelho cf62bb7f87 Use templates for vectors 2022-09-11 11:39:40 +01:00
duarteapcoelho 537b46e65c Rename "dot3" to "dot" and move to vector.h 2022-09-10 18:58:10 +01:00
duarteapcoelho 001deefdbb Optimize rasterization 2022-09-09 00:25:49 +01:00
duarteapcoelho 99483cab91 Remove memory allocation when drawing triangles 2022-09-09 00:25:49 +01:00
duarteapcoelho b8fb21ec7a Add sun 2022-09-09 00:25:49 +01:00
duarteapcoelho 91afd62a9c Change field of view according to speed 2022-09-09 00:25:49 +01:00
duarteapcoelho 6904a54d5e Optimize clipping 2022-09-09 00:25:49 +01:00
duarteapcoelho c8a99400f2 Optimize clipping 2022-09-09 00:25:49 +01:00
duarteapcoelho 53d31af0c2 Fix bug when drawing above the screen 2022-09-09 00:25:49 +01:00
duarteapcoelho d8bd4e1ec0 Better track 2022-09-09 00:25:49 +01:00
duarteapcoelho b84378b509 Rendering optimization 2022-09-09 00:25:49 +01:00
duarteapcoelho f6cacf0f86 Optmize clipping 2022-09-09 00:25:49 +01:00
duarteapcoelho 27dde4bc4b Add directional shading and inline functions 2022-09-09 00:25:38 +01:00
duarteapcoelho 6754fdf9a3 Clean 2022-08-22 22:34:05 +01:00
duarteapcoelho 59742c0343 Use scanline algorithm for rasterization 2022-08-22 22:32:54 +01:00
duarteapcoelho 2d687fadf0 Small optimizations 2022-08-21 22:11:27 +01:00
duarteapcoelho 040c4ae81c Better car movement, optimizations and clipping 2022-08-20 00:04:14 +01:00
duarteapcoelho e1e4f77685 Add circle track and other changes 2022-08-20 00:04:14 +01:00
duarteapcoelho 3c065e2359 First commit 2022-08-17 12:19:52 +01:00