Disable

Definition
The disable method disables various capabilities.

Syntax

 * gl.disable(cap)

Parameters

 * cap: symbolic constant indicating a GL capability, the supported values are gl.BLEND, gl.CULL_FACE, gl.DEPTH_TEST, gl.DITHER, gl.POLYGON_OFFSET_FILL, gl.SAMPLE_ALPHA_TO_COVERAGE, gl.SAMPLE_COVERAGE, gl.SCISSOR_TEST and gl.STENCIL_TEST, all capabilities are disabled by default

Examples

 * // Disables depth testing
 * gl.disable(gl.DEPTH_TEST);