LensFlare Class

Extends Object3D
Module: Misc

LensFlare object can be used to simulate lens flare from lights.

Stores a list of Flares.

For optimal result LensFlare object should be attached to a light source.

Works with perspective and orthographic cameras.

Constructor

LensFlare

()

Item Index

Methods

Methods

add

(
  • texture
  • size
  • distance
  • color
)

Add texture to the lensFlare object.

Parameters:

  • texture Texture

    Texture to be used forthe new layer.

  • size Number

    Size in pixels (-1 = use texture.width)

  • distance Number

    Distance (0-1) from light source (0=at light source)

  • color Color

    Texture color

toJSON

(
  • meta
)
Object

Serialize lensflare data to json.

Parameters:

  • meta Object

    Metadata.

Returns:

Object:

Serialized data.