summaryrefslogtreecommitdiff
path: root/workspaces/main/shaders/scene1.wgsl
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-20 12:08:34 +0100
committerskal <pascal.massimino@gmail.com>2026-02-20 12:08:34 +0100
commit850388bcaabf057beed8f126002b7b663183b2d8 (patch)
treef55fad742d99dc91d2bf32ad54a27f95e8a183f3 /workspaces/main/shaders/scene1.wgsl
parent1030807a58c8f4315d209c3756a9f98d8dc6bd91 (diff)
feat(sequence): port Scene1Effect + fix seq_compiler absolute time bug
- Add Scene1 effect: raymarching cube+sphere+ground (reflections, shadows) - Fix scene1.wgsl: binding 0→2, CommonUniforms→UniformsSequenceParams - Replace Heptagon+Placeholder stub in heptagon_scene with Scene1 - Fix seq_compiler.py: emit seq.start_time+effect.start/end (absolute times) so dispatch_render active check works correctly for all sequences Bug: effects in sequences starting after t=0 were never active because local times (e.g. 0-8) never satisfied params.time<end for absolute time 20+. 34/34 tests passing. handoff(Gemini): seq_compiler now emits absolute effect times. All existing sequences affected — verify visual output across the full timeline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'workspaces/main/shaders/scene1.wgsl')
-rw-r--r--workspaces/main/shaders/scene1.wgsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/workspaces/main/shaders/scene1.wgsl b/workspaces/main/shaders/scene1.wgsl
index 8d5d5db..2f1174a 100644
--- a/workspaces/main/shaders/scene1.wgsl
+++ b/workspaces/main/shaders/scene1.wgsl
@@ -1,13 +1,13 @@
// Scene1 effect shader - ShaderToy conversion (raymarching cube & sphere)
// Source: Saturday cubism experiment by skal
-#include "common_uniforms"
+#include "sequence_uniforms"
#include "math/color"
#include "math/utils"
#include "math/sdf_shapes"
#include "render/raymarching"
-@group(0) @binding(0) var<uniform> uniforms: CommonUniforms;
+@group(0) @binding(2) var<uniform> uniforms: UniformsSequenceParams;
const PI: f32 = 3.141592654;
const TAU: f32 = 6.283185307;