Better previews

This commit is contained in:
Anuken
2020-02-26 14:44:06 -05:00
parent a1fd621eb6
commit fdaac290ac
7 changed files with 113 additions and 20 deletions
@@ -0,0 +1,14 @@
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_col;
varying vec4 v_position;
uniform vec3 u_mouse;
const vec4 shadow = vec4(0, 0, 0, 0);
void main(){
gl_FragColor = mix(v_col, shadow, distance(u_mouse, v_position.xyz));
}