Variable: MaskTexture
constMaskTexture: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
readonlygetUniforms: (props) =>object
Parameters
props
Partial<MaskTextureProps>
Returns
object
maskTexture
maskTexture:
Texture|undefined=props.maskTexture
inject
readonlyinject:object
inject.fs:#decl
readonlyfs:#decl:"uniform sampler2D maskTexture;"
inject.fs:DECKGL_FILTER_COLOR
readonlyfs:DECKGL_FILTER_COLOR: "\n float maskValue = texture(maskTexture, geometry.uv).r;\n if (maskValue == 0.0) {\n discard;\n }\n "
name
readonlyname:"mask-texture"="mask-texture"