Class reference

RDShaderSource

Inherits RefCounted

Shader source code (used by RenderingDevice).

Description

Shader source code in text form. See also RDShaderFile. RDShaderSource is only meant to be used with the RenderingDevice API. It should not be confused with Redot's own Shader resource, which is what Redot's various nodes use for high-level shader programming.

Properties

int language = 0

The language the shader is written in.

String source_compute = ""

Source code for the shader's compute stage.

String source_fragment = ""

Source code for the shader's fragment stage.

String source_tesselation_control = ""

Source code for the shader's tessellation control stage.

String source_tesselation_evaluation = ""

Source code for the shader's tessellation evaluation stage.

String source_vertex = ""

Source code for the shader's vertex stage.

Methods

Source revision 4f5b14abade2
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.