Type Alias: ColormapProps
ColormapProps =
object
Defined in: colormap.ts:5
Props for the Colormap shader module.
Properties
colormapIndex?
optionalcolormapIndex?:number
Defined in: colormap.ts:19
Which layer of colormapTexture to sample. Pass values from the
generated COLORMAP_INDEX for the shipped sprite, or any valid layer
index for a custom sprite. Defaults to 0.
colormapTexture
colormapTexture:
Texture
Defined in: colormap.ts:13
The colormap sprite as a 2D array texture. Each layer of the array is
one 256×1 RGBA8 colormap. Build from the shipped colormaps.png with
decodeColormapSprite + createColormapTexture, or bring your own.
Note this must be a Texture2DArray, not a Texture2D.
reversed?
optionalreversed?:boolean
Defined in: colormap.ts:24
When true, samples the colormap in reverse — equivalent to matplotlib's
_r suffix (e.g. viridis_r). Defaults to false.