shader_reset


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).

IMPORTANT! This function is not available with the Trial Licence of the product.


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.