Files
UnrealEngineUWP/Engine/Shaders/SimpleElementVertexShader.usf
Matthew Griffin bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00

37 lines
990 B
Plaintext

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
SimpleElementVertexShader.hlsl: Vertex shader for drawing simple elements.
=============================================================================*/
#include "Common.usf"
#ifndef ALLOW_SWITCH_VERTICALAXIS
#define ALLOW_SWITCH_VERTICALAXIS 0
#endif
float4x4 Transform;
float SwitchVerticalAxis;
void Main(
in float4 InPosition : ATTRIBUTE0,
in float2 InTextureCoordinate : ATTRIBUTE1,
in float4 InColor : ATTRIBUTE2,
in float4 InHitProxyId : ATTRIBUTE3,
out float2 OutTextureCoordinate : TEXCOORD0,
out float4 OutColor : TEXCOORD1,
out float4 OutHitProxyId : TEXCOORD2,
out float4 OutPosition : SV_POSITION
)
{
OutPosition = mul(InPosition,Transform);
#if ALLOW_SWITCH_VERTICALAXIS
OutPosition.y *= SwitchVerticalAxis;
#endif
OutTextureCoordinate = InTextureCoordinate;
OutColor = InColor;
OutHitProxyId = InHitProxyId;
}