Skip to content

shader_set

Vašek edited this page Jan 22, 2019 · 4 revisions

shader_set

Set a shader for drawing

Syntax:

shader_set(shader)
Argument Description
Effect shader Index of the shader

Returns: void

Description:

This function set the drawing target to the given shader. You can end shader use with function shader_reset.

Example:

shader_set(shader_get("Shader0"));

All further drawings will be done in the Shader0.

Back to shaders

Clone this wiki locally