glsl-util/random.glsl
yoichi kobayashi dac8afc1fd tweak.
2017-01-30 15:48:34 +09:00

5 lines
123 B
GLSL

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