Homesplat-transform API Reference - v3.0.0
    Preparing search index...

    Function selectLod

    • View a single LOD level of a multi-LOD source as a single-LOD source — the inverse of stackLods. Reads (chunk or gather) forward to the parent with lod: level; metadata is narrowed to that level's counts.

      Several selectLod views typically share one parent (one per level, then re-stacked), so close() is a no-op: the caller owns the parent's lifetime and closes it once. (A view closing the shared parent would break the other levels — e.g. a per-level pass that materializes one level.)

      Parameters

      • src: ChunkSource

        The parent (multi-LOD) source.

      • level: number

        The LOD level to expose (0-based).

      Returns ChunkSource

      A single-LOD source over src's level level.