Combat hammer tertiary fire implemented.

This commit is contained in:
Mari the Deer 2022-08-11 16:24:36 +02:00
commit 311bf6e899
13 changed files with 223 additions and 8 deletions

19
shaders/pp/WindBlur.fp Normal file
View file

@ -0,0 +1,19 @@
// simple linear wind blur effect for hammer spin
void main()
{
vec4 res = vec4(0.);
float d = Speed*.002;
float w = 1.2;
vec2 s = TexCoord;
float sum = 0.;
for ( int i=0; i<64; i++ )
{
res += w*texture(InputTexture,s);
sum += w;
w *= .95;
s.x -= d;
}
res /= sum;
FragColor = mix(texture(InputTexture,TexCoord),vec4(res.rgb,1.),Fade*.75);
}