Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionFresnel
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionFresnel.h |
| Include | #include "Materials/MaterialExpressionFresnel.h" |
Syntax
class UMaterialExpressionFresnel : public UMaterialExpression
Remarks
Allows the artists to quickly set up a Fresnel term. Returns: pow(1 - max(Normal dot Camera,0),Exponent)
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | BaseReflectFraction | Specifies the fraction of specular reflection when the surfaces is viewed from straight on. | |
| FExpressionInput | BaseReflectFractionIn | ||
| float | Exponent | The exponent to pass into the pow() function | |
| FExpressionInput | ExponentIn | ||
| FExpressionInput | Normal | The normal to dot with the camera FVector |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionFresnel
(
const FObjectInitializer& ObjectInitializer |
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). |