ClearBit

View source

Provides the bit mask used by WebGLRenderingContext#clear.

Combine members with bitwise OR to clear more than one framebuffer value in the same call.

Examples

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

gl.clear(ClearBit.Color | ClearBit.Depth)

Variants


Stencil

View source

Clears the stencil buffer (0x00000400).