GLEnable

View source

Selects a WebGL capability for WebGLRenderingContext#enable or WebGLRenderingContext#disable.

Use these values to turn common rendering capabilities on or off for the current context.

Examples

import { GLEnable } from '@wimaengine/render-webgl'

gl.enable(GLEnable.DepthTest)
gl.disable(GLEnable.Dither)

Variants


DepthTest

View source

Enables depth testing (0x0B71, DEPTH_TEST).

StencilTest

View source

Enables stencil testing (0x0B90, STENCIL_TEST).

ScissorTest

View source

Enables scissor testing (0x0C11, SCISSOR_TEST).

PolygonOffsetFill

View source

Enables polygon offset for filled primitives (0x8037, POLYGON_OFFSET_FILL).

SampleCoverage

View source

Enables sample coverage (0x80A0, SAMPLE_COVERAGE).

SampleAlphaToCoverage

View source

Enables alpha-to-coverage for multisampling (0x809E, SAMPLE_ALPHA_TO_COVERAGE).