diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-10 18:19:30 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-10 18:19:30 +0100 |
| commit | 225ff0313c5021c3f1ec2bf5dd61114032b925a7 (patch) | |
| tree | 33fce14571651158a409d9acf8494cff69dfe8dc /CMakeLists.txt | |
| parent | 532220d2abb2b48307f049c4ad5f545d4c8934d6 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 753a9b1..48a46e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,6 +150,7 @@ if (DEMO_HEADLESS) src/gpu/effects/gaussian_blur_effect.cc src/gpu/effects/solarize_effect.cc # Disabled: src/gpu/effects/cube_sphere_effect.cc (incomplete conversion) + src/gpu/effects/scene1_effect.cc src/gpu/effects/chroma_aberration_effect.cc src/gpu/effects/vignette_effect.cc src/gpu/effects/cnn_effect.cc @@ -181,6 +182,7 @@ else() src/gpu/effects/gaussian_blur_effect.cc src/gpu/effects/solarize_effect.cc # Disabled: src/gpu/effects/cube_sphere_effect.cc (incomplete conversion) + src/gpu/effects/scene1_effect.cc src/gpu/effects/chroma_aberration_effect.cc src/gpu/effects/vignette_effect.cc src/gpu/effects/cnn_effect.cc |
