struct fragment { float4 position : POSITION; // screen position float4 color0 : COLOR0; float4 texCoord: TEXCOORD0; }; struct pixel { float4 color : COLOR; }; pixel main(fragment IN, const uniform sampler2D tex, const uniform sampler2D depthTex) { pixel OUT; //OUT.color = IN.color0; float4 col = tex2D(tex, IN.texCoord.xy) * 0.01; col += tex2D(depthTex, IN.texCoord.xy).x * 0.5; OUT.color = col; return OUT; }