Skip to main content

Nodes > Math > Geometric > FaceForward

FaceForward

Flips the supplied surface normal to face in the opposite direction I. If it already faces away, return the normal as-is.

Inputs

NameTypeDescription
NfloatNormal to flip
IfloatIncidence vector (usually direction vector from camera to vertex)
NReffloatReference vector to compare against I

Outputs

NameTypeDescription
faceforward( N, T, NRef )floatNormal vector that faces the opposite direction of I