// Includes all post-process common data (textures & sampler)
#include "PPCommonData.fxh"


//-----------------------------------------------------------------------------
// Pixel Shader: SubstractResult
// Desc: Substract the orignal scene render with the source
//-----------------------------------------------------------------------------
float4 SubstractResult(float2 Tex : TEXCOORD0, float2 Tex2 : TEXCOORD1) : COLOR0
{
	return tex2D(g_samSceneColor, Tex2) - tex2D(g_samSrcColor, Tex);
}


//-----------------------------------------------------------------------------
// Technique: PostProcess
// Desc: Performs post-processing effect a color combine
//-----------------------------------------------------------------------------
technique PostProcess
{
    pass p0
    {
		ZEnable = false;
				
        VertexShader = null;
        PixelShader = compile ps_2_0 SubstractResult();
    }
}
