RuntimeData/shader/Random.glsl

5 lines
123 B
Plaintext
Raw Normal View History

2020-04-07 19:00:37 +08:00
vec3 random(vec2 uv) // from Godot 3.2
{
return vec3(fract(sin(dot(uv,vec2(12.9898,78.233)))*43758.5453123));
}