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...
VisualShaderNodeParameter
繼承: VisualShaderNode < Resource < RefCounted < Object
被繼承: VisualShaderNodeBooleanParameter, VisualShaderNodeColorParameter, VisualShaderNodeFloatParameter, VisualShaderNodeIntParameter, VisualShaderNodeTextureParameter, VisualShaderNodeTransformParameter, VisualShaderNodeUIntParameter, VisualShaderNodeVec2Parameter, VisualShaderNodeVec3Parameter, VisualShaderNodeVec4Parameter
視覺化著色器圖中,參數的基礎型別。
說明
參數代表著色器中的一個變數,是由外部設定的,即從 ShaderMaterial 中設定。參數在 ShaderMaterial 中以屬性的形式暴露,可以從屬性檢視器或腳本中分配。
屬性
|
||
|
||
|
列舉
enum Qualifier: 🔗
Qualifier QUAL_NONE = 0
該參數綁定至使用此著色器的 ShaderMaterial。
Qualifier QUAL_GLOBAL = 1
該參數使用“專案設定”中定義的全域值。
Qualifier QUAL_INSTANCE = 2
該參數綁定至節點,該節點附加了使用此著色器的 ShaderMaterial。
Qualifier QUAL_INSTANCE_INDEX = 3
The parameter will be tied to the node with attached ShaderMaterial using this shader. Enables setting a instance_index property.
Qualifier QUAL_MAX = 4
代表 Qualifier 列舉的大小。
屬性說明
The index within 0-15 range, which is used to avoid clashes when shader used on multiple materials.
參數的名稱,該參數可以通過該名稱作為 ShaderMaterial 的屬性存取。
定義該參數的作用域。