mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
15 lines
243 B
GLSL
15 lines
243 B
GLSL
#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));
|
|
}
|