Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionSubstrateBSDF
- UMaterialExpressionSubstrateSlabBSDF
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 Slab")
class UMaterialExpressionSubstrateSlabBSDF : public UMaterialExpressionSubstrateBSDF
Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | Anisotropy | Controls the anisotropy factor of the roughness. | |
| uint32: 1 | bUseSSSDiffusion | Whether to use light diffusion (i.e., SSS diffusion) or wrap-approximation for material with scattering behavior. | |
| FExpressionInput | DiffuseAlbedo | Defines the diffused albedo, the percentage of light reflected as diffuse from the surface. | |
| FExpressionInput | EmissiveColor | Emissive color on top of the surface (type = float3, unit = luminance, default = 0) | |
| FExpressionInput | F0 | Defines the color and brightness of the specular highlight where the surface is facing the camera. | |
| FExpressionInput | F90 | Defines the color of the specular highlight where the surface normal is 90 degrees from the view direction. | |
| FExpressionInput | FuzzAmount | The amount of fuzz on top of the surface used to simulate cloth-like appearance. | |
| FExpressionInput | FuzzColor | The base color of the fuzz. | |
| FExpressionInput | FuzzRoughness | Controls how rough the Fuzz layer is. | |
| FExpressionInput | GlintUV | The parameterization of the surface required to position glints on a surface. | |
| FExpressionInput | GlintValue | This represent the logarithm of the micro facet density. | |
| FExpressionInput | Normal | Take the surface normal as input. | |
| FExpressionInput | Roughness | Controls how rough the Material is. | |
| FExpressionInput | SecondRoughness | Controls the roughness of a secondary specular lobe. | |
| FExpressionInput | SecondRoughnessWeight | The weight of the second specular lobe using SecondRoughness. | |
| TObjectPtr< class USpecularProfile > | SpecularProfile | SpecularProfile, for modulating specular appearance and simulating more complex visuals such as iridescence. | |
| FExpressionInput | SSSMFP | Chromatic mean free path . | |
| FExpressionInput | SSSMFPScale | Scale the mean free path radius of the SSS profile according to a value between 0 and 1. | |
| FExpressionInput | SSSPhaseAnisotropy | Phase function anisotropy. | |
| TObjectPtr< class USubsurfaceProfile > | SubsurfaceProfile | SubsurfaceProfile, for Screen Space Subsurface Scattering. | |
| FExpressionInput | Tangent | Take a surface tangent as input. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionSubstrateSlabBSDF
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSubstrateMaterialComplexity | |||
| bool | |||
| bool | HasEdgeColor () |
||
| bool | HasFuzz () |
||
| bool | |||
| bool | HasGlint () |
||
| bool | |||
| bool | |||
| bool | |||
| bool | HasSSS () |
||
| bool |
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. | |
| void | GetExpressionToolTip
(
TArray< FString >& OutToolTip |
Get a tooltip for the expression itself. | |
| 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. |