Mindustry/core/assets/shaders/planetgrid.frag
Anuken 732769524c 🔥🔥🔥
2020-06-11 12:03:27 -04:00

12 lines
198 B
GLSL

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));
}