Random value
Generates a pseudo random value between 0.0 and 1.0.
float random (vec2 uv) {
return fract(sin(dot(uv.xy,
vec2(12.9898,78.233))) * 43758.5453123);
}
Generates a pseudo random value between 0.0 and 1.0.
float random (vec2 uv) {
return fract(sin(dot(uv.xy,
vec2(12.9898,78.233))) * 43758.5453123);
}