Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionSubstrateBSDF
- UMaterialExpressionSubstrateShadingModels
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 Shading Models")
class UMaterialExpressionSubstrateShadingModels : public UMaterialExpressionSubstrateBSDF
Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | Anisotropy | Controls the anisotropy factor of the roughness. | |
| FExpressionInput | BaseColor | Defines the overall color of the Material. (type = float3, unit = unitless, defaults to 0.18) | |
| FExpressionInput | ClearCoat | Coverage of the clear coat layer. (type = float, unit = unitless, defaults to 0.0) | |
| FExpressionInput | ClearCoatNormal | Take the bottom clear coat surface normal as input. | |
| FExpressionInput | ClearCoatRoughness | Roughness of the top clear coat layer. (type = float, unit = unitless, defaults to 0.0) | |
| FExpressionInput | ColorScaleBehindWater | A scale to apply on the scene color behind the water surface. | |
| FExpressionInput | CustomTangent | Take the tangent output node as input. | |
| FExpressionInput | EmissiveColor | Emissive color on top of the surface (type = float3, unit = luminance, default = 0) | |
| FExpressionInput | Metallic | Controls how "metal-like" your surface looks like. | |
| FExpressionInput | Normal | Take the surface normal as input. | |
| FExpressionInput | Opacity | Opacity of the material | |
| FExpressionInput | Roughness | Controls how rough the Material is. | |
| FShadingModelMaterialInput | ShadingModel | Shading models | |
| TEnumAsByte< enum EMaterialShadingModel > | ShadingModelOverride | ||
| FExpressionInput | Specular | Used to scale the current amount of specularity on non-metallic surfaces and is a value between 0 and 1 (type = float, unit = unitless, defaults to plastic 0.5) | |
| FExpressionInput | SubSurfaceColor | Scale the mean free path radius of the SSS profile according to a value between 0 and 1. | |
| TObjectPtr< class USubsurfaceProfile > | SubsurfaceProfile | SubsurfaceProfile, for Screen Space Subsurface Scattering. | |
| FExpressionInput | Tangent | Take a surface tangent as input. | |
| FExpressionInput | TransmittanceColor | The amount of transmitted light from the back side of the surface to the front side of the surface (type = float3, unit = unitless, defaults to 1) | |
| FExpressionInput | WaterAbsorptionCoefficients | The rate at which light is absorbed or out-scattered by the medium. | |
| FExpressionInput | WaterPhaseG | Anisotropy of the volume with values lower than 0 representing back-scattering, equal 0 representing isotropic scattering and greater than 0 representing forward scattering. | |
| FExpressionInput | WaterScatteringCoefficients | The single scattering Albedo defining the overall color of the Material (type = float3, unit = unitless, default = 0) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionSubstrateShadingModels
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | HasSSS () |
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). | |
| void | GetConnectorToolTip
(
int32 InputIndex, |
Get a tooltip for the specified connector. | |
| 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. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |