20 lines
617 B
HLSL
20 lines
617 B
HLSL
// 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);
|
|
}
|
|
|