sampler2D spriteTex; float4x4 wM; struct vertexOutput { float4 oPosition : POSITION; float2 oTexCoord : TEXCOORD0; }; vertexOutput spriteVS( float4 position : POSITION, float2 texCoord : TEXCOORD0 ) { vertexOutput OUT = (vertexOutput)0; texCoord.y = 1 - texCoord.y; OUT.oPosition = mul(wM, position); OUT.oTexCoord = texCoord; return OUT; } float4 spritePS( vertexOutput IN ) : COLOR0 { float4 colour = tex2D(spriteTex, IN.oTexCoord); return colour; } technique loadingScreen < string layer = "GUI" ; > { pass p0 { VertexProgram = compile arbvp1 spriteVS(); FragmentProgram = compile arbfp1 spritePS(); DepthTestEnable = false; DepthMask = true; BlendEnable = true; BlendFunc = int2(SrcAlpha, InvSrcAlpha); } }