splat-transform API Reference - v1.6.0
    Preparing search index...

    Function sortByVisibility

    • Sorts the provided indices by visibility score (descending order).

      Visibility is computed as: linear_opacity * volume where:

      • linear_opacity = sigmoid(opacity) = 1 / (1 + exp(-opacity))
      • volume = exp(scale_0) * exp(scale_1) * exp(scale_2)

      After calling this function, indices[0] will contain the index of the most visible splat, indices[1] the second most visible, and so on.

      Parameters

      • dataTable: DataTable

        The DataTable containing splat data.

      • indices: Uint32Array

        Array of indices to sort in-place.

      Returns void