UNPKG

@animech-public/playcanvas

Version:
42 lines (41 loc) 1.4 kB
/** * A class managing instances of world clusters used by the renderer for layers with * unique sets of clustered lights. * * @ignore */ export class WorldClustersAllocator { /** * Create a new instance. * * @param {import('../../platform/graphics/graphics-device.js').GraphicsDevice} graphicsDevice - * The graphics device. */ constructor(graphicsDevice: import("../../platform/graphics/graphics-device.js").GraphicsDevice); /** * Empty cluster with no lights. * * @type {WorldClusters|null} */ _empty: WorldClusters | null; /** * All allocated clusters * * @type {WorldClusters[]} */ _allocated: WorldClusters[]; /** * Render actions with all unique light clusters. The key is the hash of lights on a layer, the * value is a render action with unique light clusters. * * @type {Map<number, import('../composition/render-action.js').RenderAction>} */ _clusters: Map<number, import("../composition/render-action.js").RenderAction>; device: import("../../platform/graphics/graphics-device.js").GraphicsDevice; destroy(): void; get count(): number; get empty(): WorldClusters; assign(renderPasses: any): void; update(renderPasses: any, gammaCorrection: any, lighting: any): void; } import { WorldClusters } from '../lighting/world-clusters.js';