swwmgz_m/shaders/glsl/Ragescreen.fp
Marisa Kirisame 42db2d3603 Added various screen shaders, plus a bunch of other changes.
Spreadgun rebalancing.
Underwater sounds.
Embiggener use sound.
Other small things here and there.
2020-03-02 14:41:28 +01:00

20 lines
679 B
GLSL

#define TWOPI 6.28318530718
void main()
{
vec2 uv = TexCoord;
vec3 col = texture(InputTexture,uv).rgb;
col *= vec3(.5)+texture(WarpTex,vec2(fract(uv.x+.1*sin(uv.y*TWOPI)),fract(uv.y-timer*.1))).rgb*xtrastr;
col *= vec3(.5)+texture(WarpTex,2.*vec2(fract(uv.x+.1*cos(uv.y*TWOPI)),fract(uv.y-timer*.1))).rgb*xtrastr;
for ( float i=0.; i<4.; i+=1. )
{
float str = texture(NoiseTex,vec2(fract(timer*.2),fract(timer*.02))).x*.07;
str *= pow(xtrastr,1.5);
float p = distance(uv,vec2(.5));
vec2 suv = (uv-.5)*(1.-(str*i*p))+.5;
col += texture(InputTexture,suv).rgb+pow(p,2.)*vec3(1.8,.2,0.)*xtrastr;
}
col /= 5.;
col *= vec3(1.2,.9,.7);
FragColor = vec4(col,1.0);
}