UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

31 lines (30 loc) 1.24 kB
/** @ignore */ export class GSplatResource extends GSplatResourceBase { /** * @param {GraphicsDevice} device - The graphics device. * @param {GSplatData} gsplatData - The splat data. */ constructor(device: GraphicsDevice, gsplatData: GSplatData); /** @type {0 | 1 | 2 | 3} */ shBands: 0 | 1 | 2 | 3; 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. * * @param {GSplatData} gsplatData - The source data */ updateColorData(gsplatData: GSplatData): void; /** * @param {GSplatData} gsplatData - The source data */ updateTransformData(gsplatData: GSplatData): void; /** * @param {GSplatData} gsplatData - The source data */ 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';