uniform float u1[4];float a(){return u1[0];}uniform float u2[4];float b(){float c=0.;for(int d=3;d>=0;--d){c+=u2[d];}return c;}uniform float u3[4];float c(){float d=1.;for(int e=0;e<4;++e){d*=u3[e<2?0:e];}return d;}uniform float u4[16];float d(){float e=0.;for(float g=-2.3;g<17.;g+=3.7){if(g>0.&&g<16.){e-=u4[int(g)];}}return e;}float4 main(float2 e){return float4(a(),b(),c(),d());} |