UMaterialExpressionFresnel

Allows the artists to quickly set up a Fresnel term.

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public variable

float

 

BaseReflectFraction

Specifies the fraction of specular reflection when the surfaces is viewed from straight on.

Public variable

FExpressionInpu...

 

BaseReflectFractionIn

Public variable

float

 

Exponent

The exponent to pass into the pow() function

Public variable

FExpressionInpu...

 

ExponentIn

Public variable

FExpressionInpu...

 

Normal

The normal to dot with the camera FVector

Constructors

Name Description

Public function

UMaterialExpressionFresnel

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UMaterialExpression

Name Description

Public function Virtual

int32

 

Compile

(
    FMaterialCompiler* Compiler,
    int32 OutputIndex
)

Create the new shader code chunk needed for the Abs expression

Public function Virtual Const

void

 

GetCaption

(
    TArray< FString >& OutCaptions
)

Returns the text to display on the material expression (in the material editor).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss