Whether a material is currently rendering in colormap (LUT) mode —
the USE_COLORMAP shader define is the source of truth (set/cleared
by updateColormapTexture). In this mode the display range drives the
LUT value window and gamma warps the value pre-lookup, so neither
should be applied to the output color (see the material shaders).
Used by layer-apply.ts to pick the colormap-vs-direct route, and by the
unit tests covering it.
Whether a material is currently rendering in colormap (LUT) mode — the
USE_COLORMAPshader define is the source of truth (set/cleared byupdateColormapTexture). In this mode the display range drives the LUT value window and gamma warps the value pre-lookup, so neither should be applied to the output color (see the material shaders).Used by
layer-apply.tsto pick the colormap-vs-direct route, and by the unit tests covering it.