Bulwark shield mechanics mostly done

This commit is contained in:
Anuken
2022-01-17 13:39:15 -05:00
parent 396c087072
commit 2d19c7ae97
37 changed files with 237 additions and 38 deletions

View File

@@ -17,14 +17,7 @@ void main(){
vec4 c = texture2D(u_texture, v_texCoords);
c.a *= u_progress;
if(c.a > 0.01){
float f = step(abs(sin(coords.y*3.0 + u_time)), 0.9);
c.a *= f;
//c.rgb = mix(c.rgb, u_color.rgb, f * u_color.a);
}
// c.a *= (1.0-coords.y);
c.a *= step(abs(sin(coords.y*3.0 + u_time)), 0.9);
gl_FragColor = c * v_color;
}