float2 invert = {0, 0}; // Vertex Shader Output Structure struct vertexOutput { float4 oPosition : POSITION; float2 oTexCoord : TEXCOORD0; }; // Vertex Shader // Simply passes the position and texture coords through vertexOutput motionBlurVP( float4 position : POSITION, float2 texCoord : TEXCOORD0 ) { vertexOutput OUT = (vertexOutput)0; OUT.oPosition = position; OUT.oTexCoord = texCoord; if(invert.x != 0) OUT.oTexCoord.x = 1.f - texCoord.x; if(invert.y != 0) OUT.oTexCoord.y = 1.f - texCoord.y; return OUT; } // Pixel Shader half4 motionBlurFP( vertexOutput IN, uniform sampler2D screenTexture) : COLOR0 { half4 screenColour = h4tex2D(screenTexture, IN.oTexCoord); return screenColour; } // Technique for combining Bloom and Depth of Field technique motionBlur { pass p0 { VertexProgram = compile vp30 motionBlurVP(); FragmentProgram = compile fp40 motionBlurFP(); DepthTestEnable = false; DepthMask = false; BlendEnable = false; } }