glsl-util/random.glsl

5 lines
125 B
Plaintext
Raw Normal View History

2016-12-27 00:19:28 +08:00
float random(vec2 co){
return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);
}
#pragma glslify: export(random)