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...
VisualShaderNodeVarying¶
继承: VisualShaderNode < Resource < RefCounted < Object
派生: VisualShaderNodeVaryingGetter, VisualShaderNodeVaryingSetter
代表“verying”着色器值的可视化着色器节点。
描述¶
Varying 值是能够在着色器函数之间传递的着色器变量,例如从 Vertex 着色器传递到 Fragment 着色器。
属性¶
|
||
|
属性说明¶
String varying_name = "[None]"
变量的名称。必须唯一。
VaryingType varying_type = 0
void set_varying_type ( VaryingType value )
VaryingType get_varying_type ( )
变量的类型。决定该变量可以从哪里访问。