GLDrawLoadMask
Callable
Parameters
gl: WebGL2RenderingContext
The WebGL context
texWidth: number
The width of the texture to mask
texHeight: number
The height of the texture to mask
offsetX: number
The X offset at which the texture is to be drawn on the target canvas
offsetY: number
The Y offset at which the texture is to be drawn on the target canvas
alphaMasks: readonly RectTuple[]
A list of alpha masks to apply to the asset
Returns WebGLTexture
- The WebGL texture corresponding to the mask
Loads alpha mask data