UNPKG

@spz-loader/playcanvas

Version:

.spz GaussianSplatting loader for PlayCanvas Engine

32 lines (31 loc) 963 B
import { Entity } from 'playcanvas'; type CreateGSplatOptionType = { appId?: string; splatMaterialOptions?: { /** * - Custom vertex shader, see SPLAT MANY example. */ vertex?: string; /** * - Custom fragment shader, see SPLAT MANY example. */ fragment?: string; /** * - List of shader defines. */ defines?: string[]; /** * - Custom shader chunks. */ chunks?: { [x: string]: string; }; /** * - Opacity dithering enum. */ dither?: string; }; }; declare const createGSplatEntityFromSpzUrlAsync: (url: string, option?: CreateGSplatOptionType) => Promise<Entity>; declare const createGSplatEntityFromSpzAsync: (spzBuffer: ArrayBuffer, option?: CreateGSplatOptionType) => Promise<Entity>; export { createGSplatEntityFromSpzAsync, createGSplatEntityFromSpzUrlAsync };