Update the scalar range [min, max] the colormap maps over.
Encoded as uScalarMin = min and uScalarScale = 1/max(1e-10, max-min)
for the shader. No-op when colormap mode is not active (uniforms
are absent until setColormapTexture has been called once).
Bind a colormap LUT texture (or
nullto disable colormap mode).When
textureis non-null, theUSE_COLORMAPdefine is added and the uniforms (uColormapTex,uScalarMin,uScalarScale) are allocated with neutral defaults if they don't exist yet. Whentextureis null, the define is removed and the uniform values are cleared so a subsequentclone()doesn't resurrect a stale colormap.No-op when called on a material whose shader path doesn't include
USE_COLORMAP-guarded uniforms.