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(value: VaryingType)
VaryingType get_varying_type()
變數的型別。決定該變數可以從哪裡存取。