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).

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback