utkuatlastuzcu/tst / Engine /Shaders /ShadowDepthVertexShader.usf
utkuatlastuzcu's picture
download
raw
872 Bytes
/*=============================================================================
ShadowDepthVertexShader.hlsl: Vertex shader for writing shadow depth.
Copyright 1998-2008 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);
OutPosition = MulMatrix(ProjectionMatrix,WorldPosition);
OutShadowPosition = MulMatrix(ShadowMatrix,WorldPosition);
OutInterpolants = VertexFactoryGetInterpolants(FactoryInput);
}

Xet Storage Details

Size:
872 Bytes
·
Xet hash:
eac33d44960eb407574a077639ca944228690d9a4f343bd4e01dc2ebd32e3a1e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.