Don't render weather in full map screenshots

This commit is contained in:
Anuken
2020-12-25 21:51:25 -05:00
parent 9f8fce72d3
commit f014339dbc
3 changed files with 5 additions and 10 deletions
+1 -8
View File
@@ -6,20 +6,13 @@ uniform vec2 u_invsize;
uniform float u_time;
uniform float u_dp;
uniform vec2 u_offset;
varying vec2 v_texCoords;
float triwave(float y){
return abs(2.*fract(y)-1.);
}
void main(){
vec2 T = v_texCoords.xy;
vec2 coords = (T * u_texsize) + u_offset;
vec4 color = texture2D(u_texture, T);
vec4 color = texture2D(u_texture, T);
color.a *= (0.37 + abs(sin(u_time / 15.0)) * .05 + 0.2 * (step(mod(coords.x / u_dp + coords.y / u_dp + u_time / 4.0, 10.0), 3.0)));
gl_FragColor = color;
}