Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Apply a scalar-range update to a material's colormap uniforms. Records [min, max] on material.userData.scalarRange so later code can inspect the range without touching uniforms.

      Materials that don't implement ColormapAwareMaterial are silently ignored. The userData.scalarRange is still recorded — it's the public "what was the last range" record regardless of whether the material actually rendered with a colormap.

      Parameters

      • material: Material

        The shader material to mutate.

      • min: number

        Lower bound of the scalar range.

      • max: number

        Upper bound of the scalar range.

      Returns void