Files
UnrealEngineUWP/Engine/Shaders/Private/LightFunctionVertexShader.usf
Marc Audy 360d078ca3 Second batch of remaining Engine copyright updates.
#rnx
#rb none

[CL 10871248 by Marc Audy in Main branch]
2019-12-27 09:26:59 -05:00

20 lines
617 B
Plaintext

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
LightFunction.usf: Vertex shader for computing a light function.
=============================================================================*/
#include "Common.ush"
float4 StencilingGeometryPosAndScale;
void Main(
in float4 InPosition : ATTRIBUTE0,
out float4 OutPosition : SV_POSITION
)
{
float3 WorldPosition = InPosition.xyz * StencilingGeometryPosAndScale.w + StencilingGeometryPosAndScale.xyz;
OutPosition = mul(float4(WorldPosition,1), View.TranslatedWorldToClip);
}