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 🔗
返回目前已注册的内置头文件列表。