swwmgz_m/shaders/pp/RagescreenAlt.fp
Marisa Kirisame 32791649a5 A couple things:
- Minimize HUD when looking through cameras (toggleable).
 - Hide precise crosshair when looking through cameras.
 - Add alternative, lighter Ragekit shader for people who may have issues.
 - Small changes to options menu layout.
 - Merged vanilla boss / healthbar handler into main one.
 - Fix: Silver Bullet didn't draw scope with shaders disabled.
 - Fix: Incorrect behavior of SWWMUtility.InPlayerFOV() caused everything to always be visible.
 - Fix: Trackers didn't account for Teammates in TDM.
 - Fix: Trackers update based on distance to consoleplayer camera, not mo.
2020-11-10 15:55:47 +01:00

20 lines
688 B
GLSL

#define TWOPI 6.28318530718
void main()
{
vec2 uv = TexCoord;
vec3 col = texture(InputTexture,uv).rgb;
col *= vec3(.8)+texture(WarpTex,vec2(fract(uv.x+.1*sin(uv.y*TWOPI)),fract(uv.y-timer*.1))).rgb*xtrastr*.4;
col *= vec3(.8)+texture(WarpTex,2.*vec2(fract(uv.x+.1*cos(uv.y*TWOPI)),fract(uv.y-timer*.1))).rgb*xtrastr*.4;
for ( float i=0.; i<3.; i+=1. )
{
float str = texture(NoiseTex,vec2(fract(timer*.2),fract(timer*.02))).x*.007;
str *= pow(xtrastr,2.);
float p = distance(uv,vec2(.5));
vec2 suv = (uv-.5)*(1.-(str*i*p))+.5;
col += texture(InputTexture,suv).rgb+pow(p,5.)*vec3(.45,.05,0.)*xtrastr;
}
col /= 4.;
col *= vec3(1.1,.95,.85);
FragColor = vec4(col,1.0);
}