You are reading the
(unstable) version of this documentation, which may document features not available
or compatible with Godot 3.x.
Checking the stable version of the documentation...
Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
Inherits: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object
Returns the vector that points in the same direction as a reference vector within the visual shader graph.
faceforward(N, I, Nref) in the shader language. The function has three vector parameters:
N, the vector to orient,
I, the incident vector, and
Nref, the reference vector. If the dot product of
Nref is smaller than zero the return value is
-N is returned.