diff options
Diffstat (limited to 'workspaces/test/shaders/particle_spray_compute.wgsl')
| -rw-r--r-- | workspaces/test/shaders/particle_spray_compute.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/workspaces/test/shaders/particle_spray_compute.wgsl b/workspaces/test/shaders/particle_spray_compute.wgsl index a4041f2..4b6e48f 100644 --- a/workspaces/test/shaders/particle_spray_compute.wgsl +++ b/workspaces/test/shaders/particle_spray_compute.wgsl @@ -29,7 +29,7 @@ fn main(@builtin(global_invocation_id) id: vec3<u32>) { p.color = vec4<f32>(hash(r + 0.1), hash(r + 0.2), 1.0, 1.0); } let new_pos = p.pos.xyz + p.vel.xyz * 0.016; - p.pos = vec4<f32>(new_pos, p.pos.w - 0.01 * (1.0 + uniforms.beat)); + p.pos = vec4<f32>(new_pos, p.pos.w - 0.01 * (1.0 + uniforms.beat_phase)); p.vel.y = p.vel.y - 0.01; particles[i] = p; } |
