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

    The data meshes the refraction split partitions its scene pass around — in the viewer, the host's DepthSortCoordinator, whose node map already IS the registry of committed data meshes. Injected so this module owns no scene knowledge.

    interface GlassMeshSource {
        collectRefractingGlass(
            out: Mesh<
                BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
                Material<MaterialEventMap> | Material<MaterialEventMap>[],
                Object3DEventMap,
            >[],
        ): Mesh<
            BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            Material<MaterialEventMap> | Material<MaterialEventMap>[],
            Object3DEventMap,
        >[];
        collectUnpartitionedMeshes(
            out: Mesh<
                BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
                Material<MaterialEventMap> | Material<MaterialEventMap>[],
                Object3DEventMap,
            >[],
        ): Mesh<
            BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            Material<MaterialEventMap> | Material<MaterialEventMap>[],
            Object3DEventMap,
        >[];
        applyGlassPartition(mode: GlassPartition): number;
    }
    Index
    • The visible refracting (refract_data) glass, into a reusable array.

      Parameters

      • out: Mesh<
            BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            Material<MaterialEventMap> | Material<MaterialEventMap>[],
            Object3DEventMap,
        >[]

      Returns Mesh<
          BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
          Material<MaterialEventMap> | Material<MaterialEventMap>[],
          Object3DEventMap,
      >[]

    • The visible meshes three's own materials draw (pass A only).

      Parameters

      • out: Mesh<
            BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            Material<MaterialEventMap> | Material<MaterialEventMap>[],
            Object3DEventMap,
        >[]

      Returns Mesh<
          BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
          Material<MaterialEventMap> | Material<MaterialEventMap>[],
          Object3DEventMap,
      >[]