struct FragmentOut { float4 color0:COLOR0; }; FragmentOut add( in float2 myTexCoord:WPOS, uniform samplerRECT x, uniform samplerRECT y ) { FragmentOut c; c.color0 = texRECT( x, myTexCoord ) + texRECT( y, myTexCoord ); return c; }