mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 12:34:06 +01:00
[Noise] Increase randomness.
This commit is contained in:
parent
f1a77307e3
commit
71fa885d67
@ -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.);
|
||||
|
Loading…
Reference in New Issue
Block a user