Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionCustomOutput
- UMaterialExpressionAbsorptionMediumMaterialOutput
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionAbsorptionMediumMaterialOutput.h |
| Include | #include "Materials/MaterialExpressionAbsorptionMediumMaterialOutput.h" |
Syntax
UCLASS (MinimalAPI, CollapseCategories, HideCategories=Object)
class UMaterialExpressionAbsorptionMediumMaterialOutput : public UMaterialExpressionCustomOutput
Remarks
Material output expression for setting absorption properties of solid refractive glass (for the Path Tracer Only).
Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | TransmittanceColor | Input for the transmittance color seen after travelling a distance of 100 units into the object. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionAbsorptionMediumMaterialOutput
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpressionCustomOutput
| Type | Name | Description | |
|---|---|---|---|
| UE::Shader::EValueType | GetCustomOutputType
(
int32 OutputIndex |
This is currently only needed by the new HLSL translator Should probably be merged with UMaterialExpression base interface, which already provides GetInputType/GetOutputType | |
| FString | |||
| FString | |||
| int32 | Override to enable multiple outputs. |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |