Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

see

https://doc.babylonjs.com/features/featuresDeepDive/environment/lenseFlare

Hierarchy

  • LensFlareSystem

Index

Constructors

  • 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.

    see

    https://doc.babylonjs.com/features/featuresDeepDive/environment/lenseFlare

    Parameters

    • name: string

      Define the name of the lens flare system in the scene

    • emitter: any

      Define the source (the emitter) of the lens flares (it can be a camera, a light or a mesh).

    • scene: Scene

      Define the scene the lens flare system belongs to

    Returns LensFlareSystem

Properties

borderLimit: number

Define a limit from the border the lens flare can be visible.

id: string

Define the id of the lens flare system in the scene. (equal to name by default)

layerMask: number

Restricts the rendering of the effect to only the camera rendering this layer mask.

lensFlares: LensFlare[]

List of lens flares used in this system.

meshesSelectionPredicate: ((mesh: AbstractMesh) => boolean)

Type declaration

    • Define a predicate which could limit the list of meshes able to occlude the effect.

      Parameters

      Returns boolean

name: string

Define the name of the lens flare system

viewportBorder: number

Define a viewport border we do not want to see the lens flare in.

Accessors

  • get isEnabled(): boolean
  • set isEnabled(value: boolean): void
  • Define if the lens flare system is enabled.

    Returns boolean

  • Define if the lens flare system is enabled.

    Parameters

    • value: boolean

    Returns void

  • Gets the scene

    Returns Scene

Methods

  • dispose(): void
  • Dispose and release the lens flare with its associated resources.

    Returns void

  • getEmitter(): any
  • 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).

    Returns any

    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).

    Returns Vector3

    the position

  • Get the scene the effects belongs to.

    Returns Scene

    the scene holding the lens flare system

  • rebuild(): void
  • Rebuilds the lens flare system

    Returns void

  • serialize(): any
  • Serialize the current Lens Flare System into a JSON representation.

    Returns any

    the serialized JSON

  • setEmitter(newEmitter: any): void
  • 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).

    Parameters

    • newEmitter: any

      Define the new emitter of the system

    Returns void

  • Parse a lens flare system from a JSON representation

    Parameters

    • parsedLensFlareSystem: any

      Define the JSON to parse

    • scene: Scene

      Define the scene the parsed system should be instantiated in

    • rootUrl: string

      Define the rootUrl of the load sequence to easily find a load relative dependencies such as textures

    Returns LensFlareSystem

    the parsed system

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme