swwmgz_m/shaders/pp/Ragescreen.fp
Marisa Kirisame 9d03a86725 Fix shinemap shader UV flip.
Add shinemap debug sphere actor (to see them in action).
Move pp shaders to separate folder, akin to GZDoom's own layout.
2020-11-01 14:13:08 +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);
}