Blend
View sourceEnables blending (0x0BE2, BLEND).
Enum
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.
import { GLEnable } from '@wimaengine/render-webgl'
gl.enable(GLEnable.DepthTest)
gl.disable(GLEnable.Dither)Enables blending (0x0BE2, BLEND).
Enables depth testing (0x0B71, DEPTH_TEST).
Enables stencil testing (0x0B90, STENCIL_TEST).
Enables scissor testing (0x0C11, SCISSOR_TEST).
Enables dithering (0x0BD0, DITHER).
Enables polygon offset for filled primitives (0x8037, POLYGON_OFFSET_FILL).
Enables sample coverage (0x80A0, SAMPLE_COVERAGE).
Enables alpha-to-coverage for multisampling (0x809E, SAMPLE_ALPHA_TO_COVERAGE).