Class reference

ShaderIncludeDB

Inherits Object

Internal database of built in shader include files.

Description

This object contains shader fragments from Redot'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

String get_built_in_include_file(String filename) static

Returns the code for the built-in shader fragment. You can also access this in your shader code through #include "filename".

bool has_built_in_include_file(String filename) static

Returns true if an include file with this name exists.

PackedStringArray list_built_in_include_files() static

Returns a list of built-in include files that are currently registered.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.