blob: e3bda294399cdf04c20ede7cae19ea1f89351cda [file] [log] [blame]
uniform half4 colorRed;uniform half4 colorGreen;float a(float b){for(float c=0.;c<10.;++c)if(c==b)return c;return 0.;}float b(float c){float d=0.;for(float e=0.;e<10.;++e){if(e<c)continue;d+=e;}return d;}float c(float d){float e=0.;for(float g=0.;g<10.;g+=1.){if(g>d)break;e+=g;}return e;}float d(){float e=0.;for(float f=.123;f<.6;f+=.111)e+=f;return e-1.725;}bool e(){float4 f=float4(9.);for(float g=1.;g<=3.;++g)f=float4(f.yzw,g);return f==float4(9.,1.,2.,3.);}bool f(){float4 g=float4(9.);for(float h=1.;h<4.;++h)g=float4(g.yzw,h);return g==float4(9.,1.,2.,3.);}bool g(){float4 h=float4(9.);for(float j=3.;j>=1.;--j)h=float4(h.yzw,j);return h==float4(9.,3.,2.,1.);}bool h(){float4 i=float4(9.);for(float j=3.;j>0.;--j)i=float4(i.yzw,j);return i==float4(9.,3.,2.,1.);}bool i(){float4 j=float4(9.);for(float k=1.;k<4.;++k)j=float4(j.yzw,k);return j==float4(9.,1.,2.,3.);}bool j(){float4 k=float4(9.);for(float l=1.;l==1.;++l)k=float4(k.yzw,l);return k==float4(9.,9.,9.,1.);}half4 main(float2 k){float l=clamp(k.x,float(colorGreen.y),float(colorGreen.w))*5.;return((((((((a(l)==5.&&b(l)==35.)&&c(l)==15.)&&abs(d())<.025)&&e())&&f())&&g())&&h())&&j())&&i()?colorGreen:colorRed;}