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

    Module scene/lod-fade

    Material-level appliers for the two LOD anti-popping mechanisms.

    lod-blend.ts holds the pure, THREE-free opacity MATH (the level-dissolve curve and the streaming 1/e(k) energy compensation); this module is its material-touching counterpart, extracted from lod-group-registry.ts: walk a LOD child's leaf materials (clone-on-first-fade) and write the composed opacity multiplier, or restore the authored opacity. Kept out of lod-blend.ts so that module stays dependency-free and unit-testable over plain numbers.

    FadeableMaterial
    FADE_EPSILON
    ENERGY_FLOOR
    isBlendableMode
    densityCompensation
    isBlendableSubtree
    applyLodFade
    rebaseLodFade