Files
UnrealEngineUWP/Engine/Shaders/SimpleElementVertexShader.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

37 lines
990 B
Plaintext

// Copyright 1998-2015 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;
}