Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface FadeableMaterial

    The subset of a leaf material's surface the LOD cross-fade drives: read the authored opacity as a fade base, write base × α, and clone-on-first-use (materials are cached by props, so an in-place write would fade every layer sharing the instance). getOpacity is the symmetric companion to updateOpacity added to the material classes for exactly this.

    interface FadeableMaterial {
        updateOpacity(opacity: number): void;
        getOpacity(): number;
        applyBlendingMode?(mode: string): void;
    }

    Hierarchy

    • Material
      • FadeableMaterial
    Index
    • Present on every Luxar leaf material. Used after a fade opacity write to re-derive normal mode's opacity-gated depthWrite.

      Parameters

      • mode: string

      Returns void