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.
Checking the stable version of the documentation...
VisualShaderNodeFaceForward¶
Inherits: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object
返回与可视化着色器图中的参考向量指向相同方向的向量。
Description¶
在着色器语言中翻译为 faceforward(N, I, Nref)
。该函数有三个向量参数。N
,定向向量,I
,入射向量,以及Nref
,参考矢量。如果 I
和 Nref
的点积小于零,返回值为 N
。否则,将返回 -N
。