ShaderIncludeDB
Inherits: Object
Description
Section titled “Description”Internal database of built in shader include files.
This object contains shader fragments from Orblit’s internal shaders. These can be used when access to internal uniform buffers and/or internal functions is required for instance when composing compositor effects or compute shaders. Only fragments for the current rendering device are loaded.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| String | get_built_in_include_file(filename: String) static |
| bool | has_built_in_include_file(filename: String) static |
| PackedStringArray | list_built_in_include_files() static |
Method descriptions
Section titled “Method descriptions”get_built_in_include_file
String get_built_in_include_file(filename: String) static
Returns the code for the built-in shader fragment. You can also access this in your shader code through #include "filename".
has_built_in_include_file
bool has_built_in_include_file(filename: String) static
Returns true if an include file with this name exists.
list_built_in_include_files
PackedStringArray list_built_in_include_files() static
Returns a list of built-in include files that are currently registered.
