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

    Function densityDroppedNode

    • Projected-density thinning predicate. Mirrors GLSL luxarDensityDropped() (glsl-lib.ts) bit for bit: the storage index is run through the lowbias32 integer hash, mapped to [0, 1) and compared against uDensityDrop, the fraction of the node's elements to drop. A pure arithmetic expression, so it is safe both inside and outside an Fn() body (see the note on sortedIndexNode). Zero drops nothing.

      Parameters

      • uDensityDrop: any
      • sortedIndex: any

      Returns any