RuntimeData/shader/Random.glsl
2020-05-28 23:19:05 +08:00

5 lines
101 B
GLSL

float random(vec2 _uv)
{
return fract(sin(dot(_uv.xy, vec2(12.9898, 78.233) ) ) * 43758.5453);
}