diff --git a/shaders/sh_noise/sh_noise.fsh b/shaders/sh_noise/sh_noise.fsh index a35763400..5e20435df 100644 --- a/shaders/sh_noise/sh_noise.fsh +++ b/shaders/sh_noise/sh_noise.fsh @@ -18,7 +18,7 @@ vec3 hsv2rgb(vec3 c) { return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); } -float random (in vec2 st, float seed) { return fract(sin(dot(st.xy + seed, vec2(1892.9898, 78.23453))) * 437.54123); } +float random (in vec2 st, float seed) { return fract(sin(dot(st.xy + seed / 1000., vec2(1892.9898, 78.23453))) * 437.54123); } float frandom (in vec2 st) { float n0 = random(st, floor(seed) / 5000.);