/*============================================================================= ShadowDepthVertexShader.hlsl: Vertex shader for writing shadow depth. Copyright 1998-2007 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 OutShadowPosition : TEXCOORD7, out float4 OutPosition : POSITION ) { float4 WorldPosition = VertexFactoryGetWorldPosition(FactoryInput,OutInterpolants); OutPosition = MulMatrix(ProjectionMatrix,WorldPosition); OutShadowPosition = MulMatrix(ShadowMatrix,WorldPosition); }