Skip to content

Commit

Permalink
Fix blue trail
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Oct 22, 2024
1 parent 1e3c2d3 commit f371d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/particles/particle.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var<private> rand_seed : vec2f;

fn init_rand(invocation_id : u32, seed : vec4f) {
rand_seed = seed.xz;
rand_seed = fract(rand_seed * cos(35.456+f32(invocation_id) * seed.yw));
rand_seed = fract(rand_seed * cos(41.235+f32(invocation_id) * seed.xw));
rand_seed = fract(rand_seed * cos(35.456+f32(invocation_id) * seed.yw * 0.01f));
rand_seed = fract(rand_seed * cos(41.235+f32(invocation_id) * seed.xw * 0.01f));
}

fn rand() -> f32 {
Expand Down

0 comments on commit f371d0e

Please sign in to comment.