Files
UnrealEngineUWP/Engine/Shaders/PositionOnlyDepthVertexShader.usf
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

21 lines
591 B
Plaintext

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
PositionOnlyDepthOnlyVertexShader.hlsl: Depth-only vertex shader.
=============================================================================*/
#include "Common.usf"
#include "Material.usf"
#include "VertexFactory.usf"
void Main(
FPositionOnlyVertexFactoryInput Input,
out float4 OutPosition : SV_POSITION)
{
float4 WorldPos = VertexFactoryGetWorldPosition(Input);
ISOLATE
{
OutPosition = mul(WorldPos, View.TranslatedWorldToClip);
}
}