UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

43 lines (42 loc) 1.51 kB
/** This file must only contain pure code and pure imports */ import { type Scene } from "../../scene.pure.js"; import { type ISceneComponent } from "../../sceneComponent.js"; import { type ClusteredLightContainer } from "./clusteredLightContainer.pure.js"; /** * A scene component required for running the clustering step in clustered lights */ export declare class ClusteredLightingSceneComponent implements ISceneComponent { /** * The name of the component. Each component must have a unique name. */ name: string; /** * The scene the component belongs to. */ scene: Scene; /** * Creates a new scene component. * @param scene The scene the component belongs to */ constructor(scene: Scene); /** * Disposes the component and the associated resources. */ dispose(): void; /** * Rebuilds the elements related to this component in case of * context lost for instance. */ rebuild(): void; /** * Register the component to one instance of a scene. */ register(): void; private _gatherActiveCameraRenderTargets; } /** * Register side effects for clusteredLightingSceneComponent. * Safe to call multiple times; only the first call has an effect. * @param clusteredLightContainerClass The ClusteredLightContainer class to register the component for */ export declare function RegisterClusteredLightingSceneComponent(clusteredLightContainerClass: typeof ClusteredLightContainer): void;