shader_reset

Reset the draw target from a shader to standard drawing.

Syntax:

shader_reset();


Returns: N/A


Description

This function resets the draw target and should be called when you no longer wish to use the current shader (set using shader_set).


Example:

shader_set(shader_Glass);
draw_self();
shader_reset();

The above code will set a shader top be used for drawing, then draw the current sprite used for the instance using it.


Back: Shaders
Next: shader_is_compiled
© Copyright YoYo Games Ltd. 2018 All Rights Reserved