swwmgz_m/shaders/glsl/Ghostscreen.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

12 lines
298 B
GLSL

void main()
{
vec2 uv = TexCoord;
vec3 col = texture(InputTexture,uv).rgb;
float p = distance(uv,vec2(.5))/sqrt(2.);
for ( float i=0.; i<4.; i+=1. )
{
vec2 suv = fract((.5-uv)*(1.-i*p*p)+.5);
col += texture(InputTexture,suv).rgb*pow(p,2.)*vec3(.6,.8,1.3);
}
FragColor = vec4(col,1.0);
}