/* Start File Header -------------------------------------------------------
Copyright (C) 2010 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prior written consent of DigiPen Institute of Technology is prohibited.
File Name: particle.fx
Purpose: The shader for handling the drawing of 3D, not animating particles
Authors: Robert Francis - 100%
- End File Header --------------------------------------------------------*/

#include "Utility.fx"
float4 ColorOnTop;

float4 ParticlePixel( VS_OUTPUT IN ) : COLOR
{
	float4 texColor = tex2D( Sampler , IN.tex0 );
	texColor *= IN.color;
	return float4(ColorOnTop.xyz * ColorOnTop.w + texColor.xyz * (1 - ColorOnTop.w) * texColor.w, texColor.w);
}

technique TechniqueVine
{
	pass Pass0
	{
		VertexShader = compile vs_2_0 SimpleVertex();
		PixelShader = compile ps_2_0 ParticlePixel();
        ZEnable = true;
        AlphaBlendEnable = false;
        SrcBlend = ONE;
        DestBlend = ONE;
        SrcBlendAlpha = ONE;
        DestBlendAlpha = ONE;
	}
}