#version 430
layout(location=11)uniform float v;layout(location=2)uniform float f;layout(location=3)uniform float p;layout(location=4)uniform float l;layout(location=5)uniform vec4 i;layout(location=6)uniform vec4 m;layout(location=7)uniform vec4 c;layout(location=8)uniform vec4 y;layout(location=9)uniform float w;layout(location=10)uniform vec2 s;layout(location=500)uniform float z;uniform sampler2D x;layout(location=0)out vec4 n;
#define pi 3.14159265
int t(in int v){return v=v<<13^v,v*(v*v*15731+789221)+1376312589&2147483647;}float e(in vec3 v){ivec3 n=ivec3(floor(v));int l=n.x+n.y*57+n.z*113;return float(t(l))/1.07374e+09-.5;}vec4 a(vec4 l){float v=.2126*l.x+.7152*l.y+.0722*l.z;l=vec4(v)+vec4(w)*(l-vec4(v));vec4 n=2.*(c-.5),p=2.*i,y=2.*m,f=pow(clamp(p*l+n*(1.-p*l),0.,1.),1./y);f=clamp(f,0.,1.);vec4 s=f;s.w=l.w;return s;}void main(){vec2 i=gl_FragCoord.xy/s;vec4 w=texture(x,i);w=clamp(w,vec4(0.),vec4(1.));w=a(w);w+=p*e(7129.5*vec3(i,z))*.5;i-=.5;i*=2.;i*=f;i=abs(i);float m=1.-pow(i.x,v)-pow(i.y,v);w*=m;w=mix(w,y,y.w);n=pow(w,vec4(l));}