Type Alias SPLATLoadingOptions
deflateURL?: string;
disableAutoCameraLimits?: boolean;
fflate?: unknown;
flipY?: boolean;
gaussianSplattingMesh?: WebXRSpatialLayerType;
keepInRam?: boolean;
needsRotationScaleTextures?: boolean;
spzLibraryUrl?: string;
useSogTextures?: boolean;
}
Properties
Optionaldeflate URL
URL to load fflate from. If null or undefined, will load from unpkg.com (https://unpkg.com/fflate/umd/index.js)
Optionaldisable Auto Camera Limits
Disable automatic camera limits from being applied if they exist in the splat file
Optionalfflate
Instance of fflate to avoid dynamically loading of the lib to global if needed, useful for bundler users.
Optionalflip Y
Spatial Y Flip for splat position and orientation
Optionalgaussian Splatting Mesh
Mesh that will be used to load data instead of creating a new one
Optionalkeep In Ram
Defines if buffers should be kept in memory for editing purposes
Optionalneeds Rotation Scale Textures
Generate rotation and scale matrix textures required for voxel-based IBL shadows. Required for IBL shadows to work if keepInRam is false.
Optionalspz Library Url
URL to load the spz WASM ES module from (e.g. the @adobe/spz package). When provided, the WASM-based SPZ loader is used, which supports extra features such as antialiasing metadata, and vendor-specific extensions such as safe-orbit camera limits. Defaults to the @adobe/spz unpkg URL when WebAssembly is supported, and undefined otherwise. Set to undefined to force the built-in manual SPZ parser regardless of WebAssembly support.
Optionaluse Sog Textures
Load SOG files as raw GPU textures and dequantize in the shader. Skips the CPU decode pass and yields much faster load times. Requires WebGL2 / WebGPU. Defaults to false (CPU decode).
Options for loading Gaussian Splatting and PLY files