API

Function BindLights

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

    Parameters

    • 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