[Noise] Increase randomness.

This commit is contained in:
Tanasart 2024-08-29 10:16:50 +07:00
parent f1a77307e3
commit 71fa885d67

View File

@ -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.);