nomarized mouse
https://gyazo.com/246d4a619cb409bec020bcb17eff5d48
code:glsl
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {
float shift_center = 0.5;
vec2 center_layout = gl_FragCoord.xy / resolution - shift_center;
vec2 moved = center_layout - vec2(mouse - shift_center);
gl_FragColor = vec4(sign(moved), 1.0, 1.0 );
}