/*=============================================================================
	ShadowDepthVertexShader.hlsl: Vertex shader for writing shadow depth.
	Copyright © 2003-2006 Epic Games, Inc. All Rights Reserved.
=============================================================================*/

#include "Common.usf"
#include "Material.usf"
#include "VertexFactory.usf"

float4x4 ShadowMatrix;
float4x4 ProjectionMatrix;

void Main(
	FVertexFactoryInput FactoryInput,
	out FVertexFactoryInterpolants OutInterpolants,
	out float4 OutPosition : POSITION,
	out float4 OutShadowPosition : TEXCOORD7
	)
{
	float4 WorldPosition = VertexFactoryGetWorldPosition(FactoryInput,OutInterpolants);
	OutPosition = MulMatrix(ProjectionMatrix,WorldPosition);
	OutShadowPosition = MulMatrix(ShadowMatrix,WorldPosition);
}
