Instantiates a lens flare system.
This represents a Lens Flare System or the shiny effect created by the light reflection on the camera lenses.
It is usually composed of several lensFlare
.
Define the name of the lens flare system in the scene
Define the source (the emitter) of the lens flares (it can be a camera, a light or a mesh).
Define the scene the lens flare system belongs to
Define a limit from the border the lens flare can be visible.
Define the id of the lens flare system in the scene. (equal to name by default)
Define if the lens flare system is enabled.
Restricts the rendering of the effect to only the camera rendering this layer mask.
List of lens flares used in this system.
Define a predicate which could limit the list of meshes able to occlude the effect.
Define the name of the lens flare system
Define a viewport border we do not want to see the lens flare in.
Dispose and release the lens flare with its associated resources.
Get the emitter of the lens flare system. It defines the source of the lens flares (it can be a camera, a light or a mesh).
the emitter of the lens flare system
Get the lens flare system emitter position. The emitter defines the source of the lens flares (it can be a camera, a light or a mesh).
the position
Get the scene the effects belongs to.
the scene holding the lens flare system
Serialize the current Lens Flare System into a JSON representation.
the serialized JSON
Set the emitter of the lens flare system. It defines the source of the lens flares (it can be a camera, a light or a mesh).
Define the new emitter of the system
Parse a lens flare system from a JSON repressentation
Define the JSON to parse
Define the scene the parsed system should be instantiated in
Define the rootUrl of the load sequence to easily find a load relative dependencies such as textures
the parsed system
Generated using TypeDoc
This represents a Lens Flare System or the shiny effect created by the light reflection on the camera lenses. It is usually composed of several
lensFlare
.http://doc.babylonjs.com/how_to/how_to_use_lens_flares