set_is_enabled


Description:

public void set_is_enabled (bool enabled)

Enables a shader.

Note:

Use ShaderEffect instead.

This function will attempt to compile and link the shader, if it isn't already.

When enabled is false the default state of the GL pipeline will be used instead.

Parameters:

this

a Shader

enabled

The new state of the shader.