swwmgz_m/shaders/glsl/SilverScope.fp
Marisa Kirisame fb078b7232 Silver Bullet JET fully implemented.
Ammo rebalancing.
Damage boost to Candy Gun.
Various small adjustments.
Grilled Cheese Sandwich now gives 3 seconds of invulnerability on activation.
2020-06-13 21:32:28 +02:00

13 lines
418 B
GLSL

void main()
{
vec2 uv = TexCoord.st;
vec3 base = texture(InputTexture,uv).rgb;
vec2 p = vec2(.5)-uv;
vec2 sz = textureSize(InputTexture,0);
if ( sz.x > sz.y ) p.x *= sz.x/sz.y;
else p.y *= sz.y/sz.x;
vec3 col = texture(InputTexture,uv+p*pow(length(p),8.)*80.).rgb;
col = (col+.02)*.98*vec3(1.2,.6,.15);
float fade = 1.-clamp(pow(length(p)*2.,40.),0.,1.);
FragColor = vec4(mix(base*.05,col,vec3(fade)),1.);
}