Fix broken math on Ghost Artifact shader.

This commit is contained in:
Mari the Deer 2021-12-18 00:03:22 +01:00
commit 2724f77389
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.2pre r86 \cu(Fri 17 Dec 20:41:55 CET 2021)\c-";
SWWM_SHORTVER="\cw1.2pre r86 \cu(2021-12-17 20:41:55)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.2pre r87 \cu(Sat 18 Dec 00:03:22 CET 2021)\c-";
SWWM_SHORTVER="\cw1.2pre r87 \cu(2021-12-18 00:03:22)\c-";

View file

@ -7,8 +7,8 @@ void main()
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);
vec2 suv = (.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);
FragColor = vec4(col,1.);
}