UNPKG

playcanvas

Version:

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

28 lines (27 loc) 618 B
import { GlbContainerParser } from "../parsers/glb-container-parser.js"; import { ResourceHandler } from "./handler.js"; class ContainerResource { instantiateModelEntity(options) { return null; } instantiateRenderEntity(options) { return null; } getMaterialVariants() { return null; } applyMaterialVariant(entity, name) { } applyMaterialVariantInstances(instances, name) { } } class ContainerHandler extends ResourceHandler { constructor(app) { super(app, "container"); this.addParser(new GlbContainerParser(app.graphicsDevice, app.assets)); } } export { ContainerHandler, ContainerResource };