Make "pickup through melee" optional (disabled by default). Increased leniency of use to pickup (nice for items with small hitboxes).
22 lines
688 B
GLSL
22 lines
688 B
GLSL
// RAGE
|
|
|
|
#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);
|
|
}
|