Improve ArmorPlateAbility draw (#9581)

* Improve ArmorPlateAbility draw

* Revert to tinting

Just make a white shine sprite. Or none-white if you want some interesting visuals with the colors.

* Fix not applying z when drawShine = false
This commit is contained in:
MEEPofFaith
2024-02-23 17:11:00 -05:00
committed by GitHub
parent 52b5a950f9
commit 037f752b73
2 changed files with 40 additions and 17 deletions
+1 -3
View File
@@ -2,7 +2,6 @@ uniform sampler2D u_texture;
uniform float u_time;
uniform float u_progress;
uniform vec4 u_color;
uniform vec2 u_uv;
uniform vec2 u_uv2;
uniform vec2 u_texsize;
@@ -14,8 +13,7 @@ void main(){
vec2 coords = (v_texCoords - u_uv) / (u_uv2 - u_uv);
vec2 v = vec2(1.0/u_texsize.x, 1.0/u_texsize.y);
vec4 c = texture2D(u_texture, v_texCoords);
vec4 c = texture2D(u_texture, v_texCoords);
c.a *= u_progress;
c.a *= step(abs(sin(coords.y*3.0 + u_time)), 0.9);