UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SubstrateMaterialShared.h File Reference
#include "CoreMinimal.h"
#include "SubstrateDefinitions.h"
#include "Serialization/MemoryImage.h"
#include "SubstrateMaterialShared.generated.h"

Go to the source code of this file.

Classes

struct  FSubstrateRegisteredSharedLocalBasis
 
struct  FSubstrateOperator
 
struct  FSubstrateMaterialCompilationOutput
 

Macros

#define SUBSTRATE_COMPILATION_OUTPUT_MAX_OPERATOR   24
 
#define SUBSTRATE_MATERIAL_TYPE_SINGLESLAB   0
 
#define SUBSTRATE_MATERIAL_TYPE_MULTIPLESLABS   1
 
#define SUBSTRATE_MATERIAL_TYPE_VOLUMETRICFOGCLOUD   2
 
#define SUBSTRATE_MATERIAL_TYPE_UNLIT   3
 
#define SUBSTRATE_MATERIAL_TYPE_HAIR   4
 
#define SUBSTRATE_MATERIAL_TYPE_SINGLELAYERWATER   5
 
#define SUBSTRATE_MATERIAL_TYPE_EYE   6
 
#define SUBSTRATE_MATERIAL_TYPE_LIGHTFUNCTION   7
 
#define SUBSTRATE_MATERIAL_TYPE_POSTPROCESS   8
 
#define SUBSTRATE_MATERIAL_TYPE_UI   9
 
#define SUBSTRATE_MATERIAL_TYPE_DECAL   10
 

Enumerations

enum class  ESubstrateBsdfFeature : uint16 {
  None = 0u , SSS = 1u<<0u , MFPPluggedIn = 1u<<1u , EdgeColor = 1u<<2u ,
  Fuzz = 1u<<3u , SecondRoughnessOrSimpleClearCoat = 1u<<4u , Anisotropy = 1u<<5u , Glint = 1u<<6u ,
  SpecularProfile = 1u<<7u , Eye = 1u<<8u , EyeIrisNormalPluggedIn = 1u<<9u , EyeIrisTangentPluggedIn = 1u<<10u ,
  Hair = 1u<<11u , SingleMask , ComplexMask , ComplexSpecialMask
}
 
enum  ESubstrateTileType : uint32 {
  ESimple = SUBSTRATE_TILE_TYPE_SIMPLE , ESingle = SUBSTRATE_TILE_TYPE_SINGLE , EComplex = SUBSTRATE_TILE_TYPE_COMPLEX , EComplexSpecial = SUBSTRATE_TILE_TYPE_COMPLEX_SPECIAL ,
  EOpaqueRoughRefraction = SUBSTRATE_TILE_TYPE_ROUGH_REFRACT , EOpaqueRoughRefractionSSSWithout = SUBSTRATE_TILE_TYPE_ROUGH_REFRACT_SSS_WITHOUT , EDecalSimple = SUBSTRATE_TILE_TYPE_DECAL_SIMPLE , EDecalSingle = SUBSTRATE_TILE_TYPE_DECAL_SINGLE ,
  EDecalComplex = SUBSTRATE_TILE_TYPE_DECAL_COMPLEX , ECount
}
 

Functions

 DECLARE_INTRINSIC_TYPE_LAYOUT (ESubstrateBsdfFeature)
 
ENGINE_API const TCHARToString (ESubstrateTileType Type)
 
FORCEINLINE ESubstrateTileType GetSubstrateTileTypeFromMaterialType (uint32 InMaterialType)
 
FORCEINLINE uint32 GetSubstrateTileTypeAsUint8 (ESubstrateTileType In)
 
FORCEINLINE bool UsesSubstrateTileType (uint8 InTypes, ESubstrateTileType In)
 

Macro Definition Documentation

◆ SUBSTRATE_COMPILATION_OUTPUT_MAX_OPERATOR

#define SUBSTRATE_COMPILATION_OUTPUT_MAX_OPERATOR   24

◆ SUBSTRATE_MATERIAL_TYPE_DECAL

#define SUBSTRATE_MATERIAL_TYPE_DECAL   10

◆ SUBSTRATE_MATERIAL_TYPE_EYE

#define SUBSTRATE_MATERIAL_TYPE_EYE   6

◆ SUBSTRATE_MATERIAL_TYPE_HAIR

#define SUBSTRATE_MATERIAL_TYPE_HAIR   4

◆ SUBSTRATE_MATERIAL_TYPE_LIGHTFUNCTION

#define SUBSTRATE_MATERIAL_TYPE_LIGHTFUNCTION   7

◆ SUBSTRATE_MATERIAL_TYPE_MULTIPLESLABS

#define SUBSTRATE_MATERIAL_TYPE_MULTIPLESLABS   1

◆ SUBSTRATE_MATERIAL_TYPE_POSTPROCESS

#define SUBSTRATE_MATERIAL_TYPE_POSTPROCESS   8

◆ SUBSTRATE_MATERIAL_TYPE_SINGLELAYERWATER

#define SUBSTRATE_MATERIAL_TYPE_SINGLELAYERWATER   5

◆ SUBSTRATE_MATERIAL_TYPE_SINGLESLAB

#define SUBSTRATE_MATERIAL_TYPE_SINGLESLAB   0

◆ SUBSTRATE_MATERIAL_TYPE_UI

#define SUBSTRATE_MATERIAL_TYPE_UI   9

◆ SUBSTRATE_MATERIAL_TYPE_UNLIT

#define SUBSTRATE_MATERIAL_TYPE_UNLIT   3

◆ SUBSTRATE_MATERIAL_TYPE_VOLUMETRICFOGCLOUD

#define SUBSTRATE_MATERIAL_TYPE_VOLUMETRICFOGCLOUD   2

Enumeration Type Documentation

◆ ESubstrateBsdfFeature

Enumerator
None 
SSS 
MFPPluggedIn 
EdgeColor 
Fuzz 
SecondRoughnessOrSimpleClearCoat 
Anisotropy 
Glint 
SpecularProfile 
Eye 
EyeIrisNormalPluggedIn 
EyeIrisTangentPluggedIn 
Hair 
SingleMask 
ComplexMask 
ComplexSpecialMask 

◆ ESubstrateTileType

Enumerator
ESimple 
ESingle 
EComplex 
EComplexSpecial 
EOpaqueRoughRefraction 
EOpaqueRoughRefractionSSSWithout 
EDecalSimple 
EDecalSingle 
EDecalComplex 
ECount 

Function Documentation

◆ DECLARE_INTRINSIC_TYPE_LAYOUT()

DECLARE_INTRINSIC_TYPE_LAYOUT ( ESubstrateBsdfFeature  )

◆ GetSubstrateTileTypeAsUint8()

FORCEINLINE uint32 GetSubstrateTileTypeAsUint8 ( ESubstrateTileType  In)

◆ GetSubstrateTileTypeFromMaterialType()

FORCEINLINE ESubstrateTileType GetSubstrateTileTypeFromMaterialType ( uint32  InMaterialType)

◆ ToString()

ENGINE_API const TCHAR * ToString ( ESubstrateTileType  Type)

◆ UsesSubstrateTileType()

FORCEINLINE bool UsesSubstrateTileType ( uint8  InTypes,
ESubstrateTileType  In 
)