summaryrefslogtreecommitdiff
path: root/src/gpu/demo_effects.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-02 13:54:23 +0100
committerskal <pascal.massimino@gmail.com>2026-02-02 13:54:23 +0100
commit844f5d32f37877bf65e72bcfb994d39b713a7317 (patch)
tree1c4ac55126b8392a15293b6871f0ecf4daf858ad /src/gpu/demo_effects.h
parentfc4c3a907ebe73169d9b869bc9d559645a23cbe9 (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/gpu/demo_effects.h')
0 files changed, 0 insertions, 0 deletions