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...
VisualShaderNodeInput¶
继承: VisualShaderNode < Resource < RefCounted < Object
在可视化着色器图中,代表输入着色器参数。
描述¶
提供对着色器可用的输入变量(内置)的访问。关于每种着色器类型的可用内置变量列表,请参阅着色器参考(查看教程
部分的链接)。
教程¶
属性¶
|
方法¶
get_input_real_name ( ) const |
信号¶
input_type_changed ( )
通过 input_name 更改输入时发出。
属性说明¶
String input_name = "[None]"
小写风格的输入常量之一,例如:"vertex"(VERTEX
)或 "point_size"(POINT_SIZE
)。
方法说明¶
String get_input_real_name ( ) const
返回当前常量名称翻译至 Godot 着色器语言后的名称。例如,如果 input_name 等于 "albedo"
,则返回 "ALBEDO"
。