summaryrefslogtreecommitdiff
path: root/src/effects/shaders.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-20 15:11:20 +0100
committerskal <pascal.massimino@gmail.com>2026-02-20 15:11:20 +0100
commita64ce13649a01b1b793f3de3b6ef50bf30ce1717 (patch)
treecbd86d7ff70ee39f7f8d35f1ef16cdf1cc1522c5 /src/effects/shaders.cc
parent850388bcaabf057beed8f126002b7b663183b2d8 (diff)
feat(scene1): replace ad-hoc camera with CameraParams uniform
Build camera via mat4::look_at + inverse in scene1_effect.cc, upload as CameraParams at binding 3. Shader uses getCameraRay() from camera_common. Enable camera_common snippet registration in shaders.cc. handoff(Claude): Scene1 camera now driven by CameraParams uniform; fov=TAU/6 (60° vFOV) matches original tan(PI/3) parameterization. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/effects/shaders.cc')
-rw-r--r--src/effects/shaders.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/shaders.cc b/src/effects/shaders.cc
index 4329427..c62b6a8 100644
--- a/src/effects/shaders.cc
+++ b/src/effects/shaders.cc
@@ -29,7 +29,7 @@ void InitShaderComposer() {
AssetId::ASSET_SHADER_SEQUENCE_V2_UNIFORMS);
register_if_exists("postprocess_inline",
AssetId::ASSET_SHADER_POSTPROCESS_INLINE);
- // register_if_exists("camera_common", AssetId::ASSET_SHADER_CAMERA_COMMON);
+ register_if_exists("camera_common", AssetId::ASSET_SHADER_CAMERA_COMMON);
register_if_exists("math/sdf_shapes", AssetId::ASSET_SHADER_MATH_SDF_SHAPES);
register_if_exists("math/sdf_utils", AssetId::ASSET_SHADER_MATH_SDF_UTILS);
register_if_exists("math/common_utils",