ZERO
View sourceUses zero for the selected source or destination factor (0x0000).
Enum
Provides numeric choices for the source and destination factors used by WebGL blending.
Pass a pair of values to gl.blendFunc. WebGL uses them to scale the source
and destination contributions before BlendEquation combines them.
import { BlendMode } from '@wimaengine/render-webgl'
// `gl` is an existing WebGL rendering context.
gl.blendFunc(BlendMode.SRC_ALPHA, BlendMode.ONE_MINUS_SRC_ALPHA)Uses zero for the selected source or destination factor (0x0000).
Uses one for the selected source or destination factor (0x0001).
Uses the source color as the factor (0x0300).
Uses one minus the source color as the factor (0x0301).
Uses the source alpha as the factor (0x0302).
Uses one minus the source alpha as the factor (0x0303).
Uses the destination alpha as the factor (0x0304).
Uses one minus the destination alpha as the factor (0x0305).
The exported member is named ONE_MINUS_DIST_ALPHA.
Uses the destination color as the factor (0x0306).
Uses one minus the destination color as the factor (0x0307).
Uses min(source alpha, 1 - destination alpha) for the RGB source factor
(0x0308). The source alpha factor is 1.
Uses the constant blend color as the factor (0x8001).
Uses one minus the constant blend color as the factor (0x8002).
Uses the constant blend alpha as the factor (0x8003).
Uses one minus the constant blend alpha as the factor (0x8004).