shader_reset

Reset the draw target from a shader to standard drawing.

Syntax:

GML Code Example

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:

GML Code 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.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here