Skip to main content

Variable: GrayAlpha

const GrayAlpha: object

Defined in: color/alpha.ts:24

A shader module that takes alpha from the second band of a gray+alpha image.

A two-channel texture samples the second band into color.g. Put this module before BlackIsZero or WhiteIsZero, which overwrite color.g.

Type Declaration​

inject​

readonly inject: object

inject.fs:DECKGL_FILTER_COLOR​

readonly fs:DECKGL_FILTER_COLOR: "\n color.a = color.g;\n "

name​

readonly name: "gray-alpha" = "gray-alpha"