Partially implemented Stunner and Impaler (very unfinished).
Switched Impaler fire sound to something more appropriate (proto Skaarj fire). Add slot priorities to all weapons, final weapons come first. Adjust hud behavior to properly draw ammo bars by the order of their weapons.
This commit is contained in:
parent
dd51875f8e
commit
fae4f6d50b
31 changed files with 738 additions and 17 deletions
22
shaders/glsl/ElecFX.fp
Normal file
22
shaders/glsl/ElecFX.fp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
vec4 ProcessTexel()
|
||||
{
|
||||
vec2 uv = vTexCoord.st;
|
||||
uv.x += 1.;
|
||||
float ang = timer*5.;
|
||||
vec2 uv2 = vec2(uv.x*cos(ang)-uv.y*sin(ang),uv.y*cos(ang)+uv.x*sin(ang))*1.3;
|
||||
vec4 col = getTexel(fract(uv2));
|
||||
uv.y -= 2.;
|
||||
ang = timer*3.;
|
||||
uv2 = vec2(uv.x*cos(ang)-uv.y*sin(ang),uv.y*cos(ang)+uv.x*sin(ang))*1.5;
|
||||
col += getTexel(fract(uv2));
|
||||
uv.x -= 3.;
|
||||
ang = timer*4.;
|
||||
uv2 = vec2(uv.x*cos(ang)-uv.y*sin(ang),uv.y*cos(ang)+uv.x*sin(ang))*1.6;
|
||||
col += getTexel(fract(uv2));
|
||||
uv.y += 4.;
|
||||
ang = timer*2.;
|
||||
uv2 = vec2(uv.x*cos(ang)-uv.y*sin(ang),uv.y*cos(ang)+uv.x*sin(ang))*1.2;
|
||||
col += getTexel(fract(uv2));
|
||||
col *= .5;
|
||||
return col;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue