Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionSubstrateBSDF
- UMaterialExpressionSubstrateVerticalLayering
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionSubstrate.h |
| Include | #include "Materials/MaterialExpressionSubstrate.h" |
Syntax
UCLASS (MinimalAPI, CollapseCategories, HideCategories=Object,
DisplayName="Substrate Vertical Layer")
class UMaterialExpressionSubstrateVerticalLayering : public UMaterialExpressionSubstrateBSDF
Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | Base | Substrate material layer below the Top material layer | |
| uint32: 1 | bUseParameterBlending | Merge Top and Base into a single material by mixing their inputs rather than their evaluation. | |
| FExpressionInput | Thickness | Thickness of the Top material layer | |
| FExpressionInput | Top | Substrate material layer on top of the Base material layer |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionSubstrateVerticalLayering
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| void | GatherSubstrateMaterialInfo
(
FSubstrateMaterialInfo& SubstrateMaterialInfo, |
Recursively parse nodes outputing Substrate material in order to gather all the possible shading models used in a material graph output a Substrate material. | |
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FName | GetInputName
(
int32 InputIndex |
||
| uint32 | GetInputType
(
int32 InputIndex |
||
| uint32 | GetOutputType
(
int32 OutputIndex |
||
| bool | IsResultSubstrateMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Substrate material. | |
| FSubstrateOperator * | SubstrateGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. |