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

    Module rendering/materials/_shared/density-drop

    uDensityDrop — the per-node projected-density thinning uniform.

    Every Luxar leaf material (points / lines / gsplats, GLSL and TSL, visual and picking) declares uDensityDrop: the fraction of the node's elements the vertex stage drops, chosen per storage index by luxarDensityDropped() / densityDroppedNode(). The value is written by the density guard (scene/density-guard.ts) and mirrored onto the picking material by the pick pass, so a thinned element can neither be seen nor picked.

    Duck-typed on material.uniforms so one helper serves ShaderMaterial uniform records and the TSL materials' proxyIUniform records alike.

    DENSITY_DROP_UNIFORM
    hasDensityDrop
    getDensityDrop
    setDensityDrop