Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionBlendMaterialAttributes
- UMaterialExpressionLegacyBlendMaterialAttributes
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionBlendMaterialAttributes.h |
| Include | #include "Materials/MaterialExpressionBlendMaterialAttributes.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionBlendMaterialAttributes : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMaterialAttributesInput | A | ||
| FExpressionInput | Alpha | ||
| FMaterialAttributesInput | B | ||
| TEnumAsByte< EMaterialAttributeBlend::Type > | PixelAttributeBlendType | Optionally skip blending attributes of this type. | |
| TEnumAsByte< EMaterialAttributeBlend::Type > | VertexAttributeBlendType | Optionally skip blending attributes of this type. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionBlendMaterialAttributes
(
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. | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FExpressionInput * | Returns the input at index InputIndex if valid, nullptr otherwise. | ||
| FName | GetInputName
(
int32 InputIndex |
||
| uint32 | GetInputType
(
int32 InputIndex |
||
| bool | IsInputConnectionRequired
(
int32 InputIndex |
||
| bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | |
| 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. |