Improved fog of war, added minimap display

This commit is contained in:
Anuken
2018-06-24 14:42:45 -04:00
parent 77a63a39ad
commit 41e611d7db
6 changed files with 122 additions and 48 deletions

View File

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