Skip to main content

Variable: BlackIsZero

const BlackIsZero: object

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

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

Type Declaration

inject

readonly inject: object

inject.fs:#decl

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

inject.fs:DECKGL_FILTER_COLOR

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

name

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