glsl-util/random.glsl
2016-12-27 01:19:28 +09:00

5 lines
125 B
GLSL

float random(vec2 co){
return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);
}
#pragma glslify: export(random)