You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
21 lines
686 B
Plaintext
21 lines
686 B
Plaintext
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
/*=============================================================================
|
|
LightFunction.usf: Vertex shader for computing a light function.
|
|
=============================================================================*/
|
|
|
|
#include "Common.usf"
|
|
|
|
float4 StencilingGeometryPosAndScale;
|
|
|
|
void Main(
|
|
in float4 InPosition : ATTRIBUTE0,
|
|
out float4 OutScreenPosition : TEXCOORD0,
|
|
out float4 OutPosition : SV_POSITION
|
|
)
|
|
{
|
|
float3 WorldPosition = InPosition * StencilingGeometryPosAndScale.w + StencilingGeometryPosAndScale.xyz;
|
|
OutPosition = OutScreenPosition = mul(float4(WorldPosition,1), View.TranslatedWorldToClip);
|
|
}
|
|
|