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"。