Files
UnrealEngine/Engine/Shaders/Private/MinMaterialTexCoords.ush
2025-05-18 13:04:45 +08:00

20 lines
805 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
MinMaterialTexCoords.usf: Definition allowing implementing MinMaterialTexCoords.
=============================================================================*/
// Allow some shader types to change the number of coords used.
#if MIN_MATERIAL_TEXCOORDS > NUM_MATERIAL_TEXCOORDS_VERTEX
#undef NUM_MATERIAL_TEXCOORDS_VERTEX
#define NUM_MATERIAL_TEXCOORDS_VERTEX MIN_MATERIAL_TEXCOORDS
#endif
#if MIN_MATERIAL_TEXCOORDS > NUM_MATERIAL_TEXCOORDS
#undef NUM_MATERIAL_TEXCOORDS
#define NUM_MATERIAL_TEXCOORDS MIN_MATERIAL_TEXCOORDS
#undef NUM_TEX_COORD_INTERPOLATORS
#define NUM_TEX_COORD_INTERPOLATORS (MIN_MATERIAL_TEXCOORDS + NUM_CUSTOM_VERTEX_INTERPOLATORS)
#endif