Using the editor, as for particle systems, you can create and edit lens flare systems. To create one, simply go to the “Add” menu of the main toolbar and select “Add Lens Flare”:
A window appears asking for an emitter. Indeed, in Babylon.js a lens flare system has an emitter which is typically a mesh or a light. You need to select one, and only one, emitter to get lens flare systems working well. Let's choose, for example, the spot light of a scene:
Once added, a lens flare system is a sub-element of the selected emitter (here the spotlight). To edit the lens flare system, simply expand the spotlight and select the system in the scene graph:
You can now modify the properties of each lens flare, of the lens flare system. Properties such as the color, the position and the size. To select another specific lens flare of the system, you can use the combo box "Lens Flare :" and select one.