From f371d0e262970de3a245c2bb386b0e8fe97e72b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Tue, 22 Oct 2024 09:58:04 +0200 Subject: [PATCH] Fix blue trail --- sample/particles/particle.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/particles/particle.wgsl b/sample/particles/particle.wgsl index 5b9575f7..c3bcd771 100644 --- a/sample/particles/particle.wgsl +++ b/sample/particles/particle.wgsl @@ -5,8 +5,8 @@ var 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 {