#include "CoreMinimal.h"
#include "Engine/EngineTypes.h"
#include "Materials/MaterialExpression.h"
#include "SubstrateDefinitions.h"
#include "MaterialExpressionSubstrate.generated.h"
Go to the source code of this file.
|
| enum | EMaterialSubSurfaceType : int {
MSS_None = SSS_TYPE_NONE UMETA(DisplayName="None")
, MSS_Wrap = SSS_TYPE_WRAP UMETA(DisplayName="Wrap", ToolTip="Approximation using wrap-lighting. ")
, MSS_TwoSidedWrap = SSS_TYPE_TWO_SIDED_WRAP UMETA(DisplayName="Two-Sided Wrap", ToolTip="Approximation using wrap-lighting and handling thin surface (e.g.: foliage)")
, MSS_Diffusion = SSS_TYPE_DIFFUSION UMETA(DisplayName="Diffusion", ToolTip="Diffusion based sub-surface scattering")
,
MSS_DiffusionProfile = SSS_TYPE_DIFFUSION_PROFILE UMETA(Hidden)
, MSS_SimpleVolume = SSS_TYPE_SIMPLEVOLUME UMETA(DisplayName="Simple Volume", ToolTip="Approximation of optically thin slab (e.g.: glass) where light is visible through the material")
, MSS_MAX
} |
| |
◆ EMaterialSubSurfaceType
| Enumerator |
|---|
| MSS_None | |
| MSS_Wrap | |
| MSS_TwoSidedWrap | |
| MSS_Diffusion | |
| MSS_DiffusionProfile | |
| MSS_SimpleVolume | |
| MSS_MAX | |
◆ CompileSubstrateBlendFunction()
Compile a special blend function for Substrate when blending material attribute
- Parameters
-
| Compiler | The compiler to add code to |
| Foreground | Entry A, has a bigger impact when Alpha is close to 0 |
| Background | Entry B, has a bigger impact when Alpha is close to 1 |
| Alpha | Blend factor [0..1], when 0 |
- Returns
- Index to a new code chunk
◆ SubstrateMergeSubSurfaceType()