class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted RDShaderSource
Shader source code (used by RenderingDevice).

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 Godot's own Shader resource, which is what Godot's various nodes use for high-level shader programming.

ShaderLanguage language<>():ShaderLanguage

The language the shader is written in.

String source_compute<>():String

Source code for the shader's compute stage.

String source_fragment<>():String

Source code for the shader's fragment stage.

String source_tesselation_control<>():String

Source code for the shader's tessellation control stage.

String source_tesselation_evaluation<>():String

Source code for the shader's tessellation evaluation stage.

String source_vertex<>():String

Source code for the shader's vertex stage.

String get_stage_source<>( ShaderStage stage=, stage:ShaderStage=, ):String

Returns source code for the specified shader stage. Equivalent to getting one of source_compute, source_fragment, source_tesselation_control, source_tesselation_evaluation or source_vertex.

void set_stage_source<>( ShaderStage stage=, stage:ShaderStage=, String source=, source:String=, ):void

Sets source code for the specified shader stage. Equivalent to setting one of source_compute, source_fragment, source_tesselation_control, source_tesselation_evaluation or source_vertex.

Note: If you set the compute shader source code using this method directly, remember to remove the Godot-specific hint #[compute].




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...