diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 13:54:23 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 13:54:23 +0100 |
| commit | 844f5d32f37877bf65e72bcfb994d39b713a7317 (patch) | |
| tree | 1c4ac55126b8392a15293b6871f0ecf4daf858ad /src/3d/visual_debug.cc | |
| parent | fc4c3a907ebe73169d9b869bc9d559645a23cbe9 (diff) | |
feat(3d): Support non-uniform scale and shadows on rasterized objects
- Implemented full support for non-uniform scaling by calculating and passing the 'model_inverse_transpose' matrix to the shader for correct normal transformation.
- Added 'transpose()' and 'inverse()' methods to the 'mat4' class in 'mini_math.h'.
- Refactored the shader to use the new matrix for lighting rasterized objects.
- Updated the test scene to use a rasterized floor (CUBE) instead of an SDF one, ensuring it receives correct lighting and shadows even with non-uniform scale.
Diffstat (limited to 'src/3d/visual_debug.cc')
0 files changed, 0 insertions, 0 deletions
