Skip to main content

Variable: WhiteIsZero

const WhiteIsZero: object

Defined in: color/white-is-zero.ts:14

A shader module that converts single-band grayscale data to RGB by broadcasting the inverted input value (0 = white, 1 = black) into all three channels. Matches TIFF PhotometricInterpretation = 0 (WhiteIsZero).

Type Declaration

inject

readonly inject: object

inject.fs:#decl

readonly fs:#decl: "\n vec3 white_zero_to_rgb(float value) {\n return vec3(1.0 - value, 1.0 - value, 1.0 - value);\n }\n" = shader

inject.fs:DECKGL_FILTER_COLOR

readonly fs:DECKGL_FILTER_COLOR: "\n color.rgb = white_zero_to_rgb(color.r);\n "

name

readonly name: "white-is-zero" = "white-is-zero"