Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeFaceForward

繼承: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object

返回與視覺化著色器圖中的參考向量指向相同方向的向量。

說明

在著色器語言中翻譯為 faceforward(N, I, Nref)。該函式有三個向量參數。N,定向向量,I,入射向量,以及Nref,參考向量。如果 INref 的點積小於零,返回值為 N。否則,將返回 -N