Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Sanitize a knob value against its spec: a non-number or NaN resolves to the documented DEFAULT (the sibling sanitizer policy — a corrupt value should not land on a boundary that looks chosen), +Infinity is kept only where the spec says the top is infinite, and everything else clamps into [min, max].

      Parameters

      • key:
            | "roughness"
            | "metalness"
            | "clearcoat"
            | "clearcoat_roughness"
            | "iridescence"
            | "sheen"
            | "transmission"
            | "ior"
            | "thickness"
            | "attenuation_distance"
            | "dispersion"
      • value: unknown

      Returns number