Navigation
API > API/Runtime > API/Runtime/Engine
Allows the artists to quickly set up a Fresnel term. Returns: pow(1 - max(Normal dot Camera,0),Exponent)
| Name | UMaterialExpressionFresnel |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionFresnel.h |
| Include Path | #include "Materials/MaterialExpressionFresnel.h" |
Syntax
UCLASS (MinimalAPI, CollapseCategories, HideCategories=Object)
class UMaterialExpressionFresnel : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionFresnel
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseReflectFraction | float | Specifies the fraction of specular reflection when the surfaces is viewed from straight on. | Materials/MaterialExpressionFresnel.h |
|
| BaseReflectFractionIn | FExpressionInput | Materials/MaterialExpressionFresnel.h |
|
|
| Exponent | float | The exponent to pass into the pow() function | Materials/MaterialExpressionFresnel.h |
|
| ExponentIn | FExpressionInput | Materials/MaterialExpressionFresnel.h |
|
|
| Normal | FExpressionInput | The normal to dot with the camera FVector | Materials/MaterialExpressionFresnel.h |
|
Functions
Public
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Build
(
MIR::FEmitter& Emitter |
Builds this expression's material IR. | Materials/MaterialExpressionFresnel.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionFresnel.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionFresnel.h |