uniform half4 colorGreen;uniform half4 colorRed;struct S{float f1;vec2 v2;};bool a(bool c,float d,float e,float f,float g,float h,float i){float j=float(colorGreen.x+1.);S k[2];k[0].f1=d;k[0].v2=vec2(e,f);k[1].f1=g;k[1].v2=vec2(h,i);S l[2];l[0].f1=d*j;l[0].v2=vec2(e*j,f*j);l[1].f1=g*j;l[1].v2=vec2(h*j,i*j);return c?k==l:k!=l;}bool b(bool c,float d,float e,float f,float g,float h,float i){float j=float(colorGreen.x+2.);S k[2];k[0].f1=d;k[0].v2=vec2(e,f);k[1].f1=g;k[1].v2=vec2(h,i);S l[2];l[0].f1=d*j;l[0].v2=vec2(e*j,f*j);l[1].f1=g*j;l[1].v2=vec2(h*j,i);return c?k==l:k!=l;}vec4 main(vec2 c){float d=float(colorGreen.x/colorGreen.z);float e=float(colorGreen.z/colorGreen.x);float f=float(colorGreen.x*colorGreen.z);float g=float(-colorGreen.x*colorGreen.z);float h=float(colorGreen.y*42.);float i=float(colorGreen.y*43.);float j=float(colorGreen.y*44.);float k=float(colorGreen.y*45.);float l=float(colorGreen.y*46.);float m=float(colorGreen.y*47.);bool n=true;bool o=false;return vec4(((((((a(n,h,g,f,i,j,k)&&!a(o,h,g,f,i,j,k))&&a(o,h,d,e,i,j,k))&&!a(n,h,d,e,i,j,k))&&b(o,h,i,j,k,l,m))&&!b(n,h,i,j,k,l,m))&&b(o,d,g,f,h,i,j))&&!b(n,d,g,f,h,i,j)?colorGreen:colorRed);} |