diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-12 00:33:58 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-12 00:33:58 +0100 |
| commit | 641b5b692ddfce30cc1bcebe742b38e0bba39ce8 (patch) | |
| tree | 1249d50ef4c3d84b11f9c2edbc6fa5b8025626fd /workspaces/test/shaders/ellipse.wgsl | |
| parent | 89c46872127aaede53362f64cdc3fe9b3164650b (diff) | |
fix: update shader files to use beat_phase instead of beat
- Fixed particle_spray_compute.wgsl (uniforms.beat → uniforms.beat_phase)
- Fixed ellipse.wgsl (uniforms.beat → uniforms.beat_phase)
- Applied to all workspace and asset directories
Resolves shader compilation error on demo64k startup.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'workspaces/test/shaders/ellipse.wgsl')
| -rw-r--r-- | workspaces/test/shaders/ellipse.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/workspaces/test/shaders/ellipse.wgsl b/workspaces/test/shaders/ellipse.wgsl index 05dfcfc..69b2712 100644 --- a/workspaces/test/shaders/ellipse.wgsl +++ b/workspaces/test/shaders/ellipse.wgsl @@ -46,6 +46,6 @@ fn sdEllipse(p: vec2<f32>, ab: vec2<f32>) -> f32 { @fragment fn fs_main(@builtin(position) p: vec4<f32>) -> @location(0) vec4<f32> { let uv = (p.xy / uniforms.resolution - 0.5) * 2.0; let movement = vec2<f32>(sin(uniforms.time * 0.7), cos(uniforms.time * 0.5)); - let d = sdEllipse((uv * vec2<f32>(uniforms.aspect_ratio, 1.0)) - movement, vec2<f32>(0.5, 0.3) * (1.0 + uniforms.beat * 0.2)); + let d = sdEllipse((uv * vec2<f32>(uniforms.aspect_ratio, 1.0)) - movement, vec2<f32>(0.5, 0.3) * (1.0 + uniforms.beat_phase * 0.2)); return mix(vec4<f32>(0.2, 0.8, 0.4, 1.0), vec4<f32>(0.0), smoothstep(0.0, 0.01, d)); } |
