This commit is contained in:
Anuken
2020-05-23 19:14:48 -04:00
parent 46bc2207ff
commit df08498d70
6 changed files with 15 additions and 9 deletions

View File

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