playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
18 lines (17 loc) • 557 B
JavaScript
import { GSplatOctreeParser } from "../parsers/gsplat-octree.js";
import { PlyParser } from "../parsers/ply.js";
import { SogBundleParser } from "../parsers/sog-bundle.js";
import { SogParser } from "../parsers/sog.js";
import { ResourceHandler } from "./handler.js";
class GSplatHandler extends ResourceHandler {
constructor(app) {
super(app, "gsplat");
this.addParser(new PlyParser(app));
this.addParser(new SogBundleParser(app));
this.addParser(new SogParser(app));
this.addParser(new GSplatOctreeParser(app));
}
}
export {
GSplatHandler
};