utkuatlastuzcu/tst / Engine /Shaders /HitProxyVertexShader.usf
utkuatlastuzcu's picture
download
raw
1.06 kB
/*=============================================================================
HitProxyVertexShader.hlsl: Vertex shader for rendering hit proxies.
Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
=============================================================================*/
#include "Common.usf"
#include "Material.usf"
#include "VertexFactory.usf"
void Main(
FVertexFactoryInput Input,
out FVertexFactoryInterpolants FactoryInterpolants,
out float4 PixelPosition : TEXCOORD6,
out float3 CameraVector : TEXCOORD7,
out float4 Position : POSITION
)
{
float4 WorldPosition = VertexFactoryGetWorldPosition(Input);
Position = MulMatrix(ViewProjectionMatrix,WorldPosition);
FactoryInterpolants = VertexFactoryGetInterpolants(Input);
#if WORLD_POS
PixelPosition = WorldPosition;
#else
PixelPosition = Position;
#endif
float3x3 TangentBasis = VertexFactoryGetTangentBasis(Input);
CameraVector = VertexFactoryWorldToTangentSpace(Input,TangentBasis,CameraPosition.xyz - WorldPosition.xyz * CameraPosition.w);
}

Xet Storage Details

Size:
1.06 kB
·
Xet hash:
6820c291708715f7a26ce552baae4544da66a7c38457fdbdc2c2062bbd174b67

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.