Skip to main content

Variable: MaskTexture

const MaskTexture: object

Defined in: mask-texture.ts:18

A shader module that discards fragments where a separate single-channel mask texture reads zero. Useful for COG / GeoTIFF transparency masks stored as a sibling IFD.

Compares directly against 0.0; assumes the mask is sampled with nearest- neighbor filtering so there are no interpolated intermediate values.

Type Declaration

getUniforms

readonly getUniforms: (props) => object

Parameters

props

Partial<MaskTextureProps>

Returns

object

maskTexture

maskTexture: Texture | undefined = props.maskTexture

inject

readonly inject: object

inject.fs:#decl

readonly fs:#decl: "uniform sampler2D maskTexture;"

inject.fs:DECKGL_FILTER_COLOR

readonly fs:DECKGL_FILTER_COLOR: "\n float maskValue = texture(maskTexture, geometry.uv).r;\n if (maskValue == 0.0) {\n discard;\n }\n "

name

readonly name: "mask-texture" = "mask-texture"