pseudo rand
https://gyazo.com/8c7734d80d300e3fb680ecba272fdbc6
code:glsl
precision mediump float;
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
float pseudo_rand() {
float a = fract(dot(gl_FragCoord.xy, vec2(2.067390879775102, 12.451168662908249))) - 0.5;
float s = a * (6.182785114200511 + a*a * (-38.026512460676566 + a*a * 53.392573080032137));
float t = fract(s * 43758.5453);
return t;
}
void main( void ) {
gl_FragColor = vec4(vec3(pseudo_rand()), 1.0);
}