API

Function BindLight

  • Binds the lights information from the scene to the effect for the given mesh.

    Parameters

    • 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