Function BindLights
-
BindLights(
scene: Scene,
mesh: AbstractMesh,
effect: Effect,
defines: any,
maxSimultaneousLights?: number,
): voidParameters
- scene: Scene
The scene the lights belongs to
- mesh: AbstractMesh
The mesh we are binding the information to render
- effect: Effect
The effect we are binding the data to
- defines: any
The generated defines for the effect
- maxSimultaneousLights: number = 4
The maximum number of light that can be bound to the effect
Returns void
- scene: Scene
Binds the lights information from the scene to the effect for the given mesh.