mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-23 14:17:48 +07:00
Improved fog of war, added minimap display
This commit is contained in:
@ -5,6 +5,8 @@ precision mediump int;
|
||||
|
||||
uniform sampler2D u_texture;
|
||||
|
||||
const float round = 0.23;
|
||||
|
||||
varying vec4 v_color;
|
||||
varying vec2 v_texCoord;
|
||||
|
||||
@ -12,5 +14,6 @@ void main() {
|
||||
vec4 color = texture2D(u_texture, v_texCoord.xy);
|
||||
color.a = 1.0 - color.r;
|
||||
color.rgb = vec3(0.0);
|
||||
color.a = float(int(color.a / round)) * round;
|
||||
gl_FragColor = color * v_color;
|
||||
}
|
||||
|
Reference in New Issue
Block a user