RuntimeData/shader/Random.glsl

5 lines
101 B
Plaintext
Raw Normal View History

2020-05-28 23:19:05 +08:00
float random(vec2 _uv)
2020-04-07 19:00:37 +08:00
{
2020-05-28 23:19:05 +08:00
return fract(sin(dot(_uv.xy, vec2(12.9898, 78.233) ) ) * 43758.5453);
2020-04-07 19:00:37 +08:00
}