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...
ShaderIncludeDB
繼承: Object
內建著色器頭檔案的內部資料庫。
說明
該物件包含 Godot 內部著色器中的著色器片段。需要存取內部 Uniform 緩衝區和/或內部函式時,例如在組合合成器效果或計算著色器時,可以使用這些片段。僅載入目前渲染裝置的片段。
方法
get_built_in_include_file(filename: String) static |
|
has_built_in_include_file(filename: String) static |
|
list_built_in_include_files() static |
方法說明
String get_built_in_include_file(filename: String) static 🔗
回傳內建著色器片段的程式碼。在著色器程式碼中也可以通過 #include "檔名" 存取。
bool has_built_in_include_file(filename: String) static 🔗
如果存在該名稱對應的頭檔案,則回傳 true。
PackedStringArray list_built_in_include_files() static 🔗
回傳目前已注冊的內建頭檔案清單。