import { type Nullable } from "@babylonjs/core/types.js"; import { type AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.pure.js"; import { type IMeshPrimitive, type INode, type IMesh } from "../glTFLoaderInterfaces.js"; import { type IGLTFLoaderExtension } from "../glTFLoaderExtension.js"; import { GLTFLoader } from "../glTFLoader.pure.js"; /** * Converts packed splat data from the SPZ coordinate system (RUB) to the glTF one (LUF), in place. * This rotates the data by 180 degrees around the Y axis: x and z are negated. * @param data Packed splats (32 bytes per splat: position, scale, color, quaternion wxyz) * @param sh Spherical harmonics textures (16 bytes per splat in each texture), if any * @param shDegree Spherical harmonics degree of `sh` * @internal */ export declare function _ConvertSpzRubToLuf(data: ArrayBuffer, sh: Nullable | undefined, shDegree: number): void; /** * [Specification](https://github.com/KhronosGroup/glTF/pull/2531) * Loads a KHR_gaussian_splatting primitive whose splat data is stored as an SPZ file, as a {@link GaussianSplattingMesh}. */ export declare class KHR_gaussian_splatting_compression_spz implements IGLTFLoaderExtension { readonly name: string; /** * Defines a number that determines the order the extensions are applied. * Must run before KHR_gaussian_splatting, which would otherwise try to read the (possibly missing) accessors. */ order: number; /** * Defines whether this extension is enabled. */ enabled: boolean; private _loader; /** * @internal * @param loader The glTF loader * @param name The extension name this instance handles */ constructor(loader: GLTFLoader, name?: string); /** @internal */ dispose(): void; /** * @internal */ _loadMeshPrimitiveAsync(context: string, name: string, node: INode, mesh: IMesh, primitive: IMeshPrimitive, assign: (babylonMesh: AbstractMesh) => void): Nullable>; private _loadSpzPrimitiveAsync; /** * The splat textures are created during the asynchronous upload, outside of any blocked entity collection scope, * so they land in the scene. Move them into the asset container (if any) and report them to the loader. * @param mesh The Gaussian splatting mesh whose data was just uploaded */ private _reportGeneratedTextures; } /** * Registers the KHR_gaussian_splatting_compression_spz_2 glTF loader extension (and its earlier draft name). * Safe to call multiple times; only the first call has an effect. */ export declare function RegisterKHR_gaussian_splatting_compression_spz(): void;