From 225ff0313c5021c3f1ec2bf5dd61114032b925a7 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 18:19:30 +0100 Subject: feat: Add Scene1 effect from ShaderToy (raymarching cube & sphere) Converted ShaderToy shader (Saturday cubism experiment) to Scene1Effect following EFFECT_WORKFLOW.md automation guidelines. **Changes:** - Created Scene1Effect (.h, .cc) as scene effect (not post-process) - Converted GLSL to WGSL with manual fixes: - Replaced RESOLUTION/iTime with uniforms.resolution/time - Fixed const expressions (normalize not allowed in const) - Converted mainImage() to fs_main() return value - Manual matrix rotation for scene transformation - Added shader asset to workspaces/main/assets.txt - Registered in CMakeLists.txt (both GPU_SOURCES sections) - Added to demo_effects.h and shaders declarations - Added to timeline.seq at 22.5s for 10s duration - Added to test_demo_effects.cc scene_effects list **Shader features:** - Raymarching cube and sphere with ground plane - Reflections and soft shadows - Sky rendering with sun and horizon glow - ACES tonemapping and sRGB output - Time-based rotation animation **Tests:** All effects tests passing (5/9 scene, 9/9 post-process) Co-Authored-By: Claude Sonnet 4.5 --- workspaces/main/timeline.seq | 3 +++ 1 file changed, 3 insertions(+) (limited to 'workspaces/main/timeline.seq') diff --git a/workspaces/main/timeline.seq b/workspaces/main/timeline.seq index 083e60a..5cf5574 100644 --- a/workspaces/main/timeline.seq +++ b/workspaces/main/timeline.seq @@ -39,6 +39,9 @@ SEQUENCE 10.50 0 "CNN effect" # EFFECT + Hybrid3DEffect 0.00 12.00 EFFECT + CNNEffect 1.0 12.0 layers=3 blend=1.5 +SEQUENCE 22.50 0 "Scene1 demo" + EFFECT + Scene1Effect 0.0 10.0 + SEQUENCE 22.0 0 "buggy" EFFECT + HeptagonEffect 0.00 0.20 EFFECT + FadeEffect 0.11 1.01 -- cgit v1.2.3