Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionSubstrateConvertMaterialAttributes |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionSubstrate.h |
| Include Path | #include "Materials/MaterialExpressionSubstrate.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionSubstrateConvertMaterialAttributes : public UMaterialExpressionSubstrateBSDF
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionSubstrateBSDF → UMaterialExpressionSubstrateConvertMaterialAttributes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionSubstrateConvertMaterialAttributes
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionSubstrate.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ColorScaleBehindWater | FExpressionInput | A scale to apply on the scene color behind the water surface. | Materials/MaterialExpressionSubstrate.h | |
| MaterialAttributes | FMaterialAttributesInput | Materials/MaterialExpressionSubstrate.h | ||
| ShadingModelOverride | TEnumAsByte< enum EMaterialShadingModel > | Materials/MaterialExpressionSubstrate.h |
|
|
| SubsurfaceProfile | TObjectPtr< class USubsurfaceProfile > | SubsurfaceProfile, for Screen Space Subsurface Scattering. | Materials/MaterialExpressionSubstrate.h |
|
| WaterAbsorptionCoefficients | FExpressionInput | The rate at which light is absorbed or out-scattered by the medium. | Materials/MaterialExpressionSubstrate.h | |
| WaterPhaseG | FExpressionInput | Anisotropy of the volume with values lower than 0 representing back-scattering, equal 0 representing isotropic scattering and greater than 0 representing forward scattering. | Materials/MaterialExpressionSubstrate.h | |
| WaterScatteringCoefficients | FExpressionInput | The single scattering Albedo defining the overall color of the Material (type = float3, unit = unitless, default = 0) | Materials/MaterialExpressionSubstrate.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasSSS() |
Materials/MaterialExpressionSubstrate.h |
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionSubstrate.h | |
virtual 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. | Materials/MaterialExpressionSubstrate.h | |
virtual void GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionSubstrate.h | |
virtual void GetConnectorToolTip
(
int32 InputIndex, |
Get a tooltip for the specified connector. | Materials/MaterialExpressionSubstrate.h | |
virtual FExpressionInput * GetInput
(
int32 InputIndex |
Returns the input at index InputIndex if valid, nullptr otherwise. | Materials/MaterialExpressionSubstrate.h | |
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionSubstrate.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionSubstrate.h | ||
virtual EMaterialValueType GetOutputValueType
(
int32 OutputIndex |
Materials/MaterialExpressionSubstrate.h | ||
virtual bool IsInputConnectionRequired
(
int32 InputIndex |
Materials/MaterialExpressionSubstrate.h | ||
virtual bool IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | Materials/MaterialExpressionSubstrate.h | |
virtual bool IsResultSubstrateMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Substrate material. | Materials/MaterialExpressionSubstrate.h | |
virtual FSubstrateOperator * SubstrateGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. | Materials/MaterialExpressionSubstrate.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Materials/MaterialExpressionSubstrate.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 CompileCommon
(
FMaterialCompiler* Compiler, |
Materials/MaterialExpressionSubstrate.h | ||
static FSubstrateOperator * SubstrateGenerateMaterialTopologyTreeCommon
(
FMaterialCompiler* Compiler, |
Materials/MaterialExpressionSubstrate.h |