uniform half4 colorGreen;uniform half4 colorRed;bool a(int b){int c=0;switch(b){case 1:for(int d=0;d<10;++d){++c;break;}default:++c;}return c==2;}bool b(int c){int d=0;switch(c){case 1:for(int e=0;e<10;++e){++d;continue;}default:++d;}return d==11;}bool c(int d){int e=0;for(int f=0;f<10;++f){switch(d){case 1:++e;break;default:return false;}++e;}return e==20;}half4 main(float2 d){int e=int(colorGreen.y);return(a(e)&&b(e))&&c(e)?colorGreen:colorRed;} |