summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-02 14:00:16 +0100
committerskal <pascal.massimino@gmail.com>2026-02-02 14:00:16 +0100
commita5409a168d08552c0fc0ad2cff8a9f32199272a1 (patch)
tree86a6d8890c688c4c6ea6cc3f274edc784e85876a /src/tests
parent844f5d32f37877bf65e72bcfb994d39b713a7317 (diff)
feat(3d): Implement unified shadow system with non-uniform scale support
- Part 1: Unified shadow calculation in fragment shader for both SDF and rasterized objects. - Part 2: Added 'model_inverse_transpose' to ObjectData to correctly transform normals for non-uniformly scaled objects. - Part 3: Brightened the floor in 'test_3d_render' to make shadows visible. - Verified correct lighting and shadows on the non-uniformly scaled floor.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_3d_render.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_3d_render.cc b/src/tests/test_3d_render.cc
index aa69675..fbf5fc0 100644
--- a/src/tests/test_3d_render.cc
+++ b/src/tests/test_3d_render.cc
@@ -141,7 +141,7 @@ void setup_scene() {
Object3D floor(ObjectType::CUBE);
floor.position = vec3(0, -2.0f, 0);
floor.scale = vec3(20.0f, 0.5f, 20.0f);
- floor.color = vec4(0.8f, 0.8f, 0.8f, 1.0f);
+ floor.color = vec4(0.9f, 0.9f, 0.9f, 1.0f); // Brighter white for better shadow contrast
g_scene.add_object(floor);
// Center object