UNPKG

playcanvas

Version:

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

28 lines (25 loc) 574 B
import { LAYERID_WORLD } from '../constants.js'; class BatchGroup { constructor(id, name, dynamic, maxAabbSize, layers = [ LAYERID_WORLD ]){ this._ui = false; this._sprite = false; this._obj = { model: [], element: [], sprite: [], render: [] }; this.id = id; this.name = name; this.dynamic = dynamic; this.maxAabbSize = maxAabbSize; this.layers = layers; } } BatchGroup.MODEL = 'model'; BatchGroup.ELEMENT = 'element'; BatchGroup.SPRITE = 'sprite'; BatchGroup.RENDER = 'render'; export { BatchGroup };