Function BindLight
-
BindLight(
light: Light,
lightIndex: number,
scene: Scene,
effect: Effect,
useSpecular: boolean,
receiveShadows?: boolean,
): voidParameters
- light: Light
Light to bind
- lightIndex: number
Light index
- scene: Scene
The scene where the light belongs to
- effect: Effect
The effect we are binding the data to
- useSpecular: boolean
Defines if specular is supported
- receiveShadows: boolean = true
Defines if the effect (mesh) we bind the light for receives shadows
Returns void
- light: Light
Binds the lights information from the scene to the effect for the given mesh.