You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
/*=============================================================================
|
|
BasePassVertexCommon.usf: Vertex-related base pass definitions, used by vertex,
|
|
hull and domain shader
|
|
=============================================================================*/
|
|
|
|
#include "Common.ush"
|
|
|
|
// Reroute SceneTexturesStruct uniform buffer references to the appropriate base pass uniform buffer
|
|
#if MATERIALBLENDING_TRANSLUCENT || MATERIALBLENDING_ADDITIVE || MATERIALBLENDING_MODULATE
|
|
#define SceneTexturesStruct TranslucentBasePass.SceneTextures
|
|
#endif
|
|
|
|
#include "/Engine/Generated/Material.ush"
|
|
#include "BasePassCommon.ush"
|
|
#include "/Engine/Generated/VertexFactory.ush"
|
|
|
|
#if NEEDS_BASEPASS_VERTEX_FOGGING
|
|
#include "HeightFogCommon.ush"
|
|
#if BASEPASS_ATMOSPHERIC_FOG
|
|
#include "AtmosphereCommon.ush"
|
|
#endif
|
|
#endif
|
|
|
|
struct FBasePassVSToPS
|
|
{
|
|
FVertexFactoryInterpolantsVSToPS FactoryInterpolants;
|
|
FBasePassInterpolantsVSToPS BasePassInterpolants;
|
|
float4 Position : SV_POSITION;
|
|
};
|
|
|
|
#if USING_TESSELLATION
|
|
struct FBasePassVSToDS
|
|
{
|
|
FVertexFactoryInterpolantsVSToDS FactoryInterpolants;
|
|
FBasePassInterpolantsVSToDS BasePassInterpolants;
|
|
float4 Position : VS_To_DS_Position;
|
|
OPTIONAL_VertexID_VS_To_DS
|
|
};
|
|
|
|
#define FBasePassVSOutput FBasePassVSToDS
|
|
#define VertexFactoryGetInterpolants VertexFactoryGetInterpolantsVSToDS
|
|
#define FPassSpecificVSToDS FBasePassVSToDS
|
|
#define FPassSpecificVSToPS FBasePassVSToPS
|
|
#else
|
|
#define FBasePassVSOutput FBasePassVSToPS
|
|
#define VertexFactoryGetInterpolants VertexFactoryGetInterpolantsVSToPS
|
|
#endif
|
|
|
|
|