mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-16 10:47:40 +07:00
Bugfixes
This commit is contained in:
@ -41,10 +41,7 @@ void main() {
|
||||
vec2 v = vec2(1.0/u_texsize.x, 1.0/u_texsize.y);
|
||||
|
||||
vec4 c = texture2D(u_texture, v_texCoord.xy);
|
||||
|
||||
if(1.0-abs(coords.x - 0.5)*2.0 < 1.0-u_progress){
|
||||
// c = vec4(0.0);
|
||||
}
|
||||
float alpha = c.a;
|
||||
|
||||
c.a *= u_progress;
|
||||
|
||||
@ -57,5 +54,7 @@ void main() {
|
||||
c = mix(c, u_color, f * u_color.a);
|
||||
}
|
||||
|
||||
c.a *= alpha;
|
||||
|
||||
gl_FragColor = c * v_color;
|
||||
}
|
||||
|
Reference in New Issue
Block a user