/** * A Gaussian splat resource that stores uncompressed splat data. Created when loading uncompressed * PLY files and glTF files with the `KHR_gaussian_splatting` extension, and for compressed PLY or * SOG files whose asset data sets `decompress` to true. * * @category Graphics */ export class GSplatResource extends GSplatResourceBase { /** * @param {GraphicsDevice} device - The graphics device. * @param {GSplatData} gsplatData - The splat data. * @param {object} [options] - Passed to {@link GSplatResourceBase} constructor. * @ignore */ constructor(device: GraphicsDevice, gsplatData: GSplatData, options?: object); /** * @type {0 | 1 | 2 | 3 | 4} * @ignore */ shBands: 0 | 1 | 2 | 3 | 4; configureMaterialDefines(defines: any): void; /** * Updates pixel data of splatColor texture based on the supplied color components and opacity. * Assumes that the texture is using an RGBA format where RGB are color components influenced * by SH spherical harmonics and A is opacity after a sigmoid transformation, or the optional * `opacity_linear` property when present: the true (linear) opacity, above 1 for merged * (decimated) gaussians, which always wins over `opacity`. * * @param {GSplatData} gsplatData - The source data * @ignore */ updateColorData(gsplatData: GSplatData): void; /** * @param {GSplatData} gsplatData - The source data * @ignore */ updateTransformData(gsplatData: GSplatData): void; /** * @param {GSplatData} gsplatData - The source data * @ignore */ updateSHData(gsplatData: GSplatData): void; } import { GSplatResourceBase } from './gsplat-resource-base.js'; import type { GSplatData } from './gsplat-data.js'; import type { GraphicsDevice } from '../../platform/graphics/graphics-device.js';