diff --git a/docs/api/objects/LensFlare.html b/docs/api/objects/LensFlare.html index 9be1a26958b3c95fe862669afd8ba58f44c0772d..e5f6f36c0ac17382b32f4b1a8efe66ebc40666f0 100644 --- a/docs/api/objects/LensFlare.html +++ b/docs/api/objects/LensFlare.html @@ -1,81 +1,86 @@ - - - + + + - - - - - - - [page:Object3D] → - -

[name]

- -
Creates a simulated lens flare that tracks a light
- -

Example

- -
[example:webgl_lensflares lensflares]
- -

Constructor

- - -

[name]([page:Texture texture], [page:Float size], [page:Float distance], [page:Materials blending], [page:Color color])

-
- texture -- THREE.Texture (optional)
- size -- size in pixels (-1 = use texture.width)
- distance -- (0-1) from light source (0 = at light source)
- blending -- [page:Materials Blending Mode] - Defaults to THREE.NormalBlending
- color -- The color of the lens flare -
-
- Automatically adds a lens flare to the lensFlares array if a texture is set. -
- -

Properties

- - - -

[property:array lensFlares]

-
- The array of flares as set by [page:LensFlare.add] -
- -

[property:Vector3 positionScreen]

-
- The position of the lens flare on the screen. -
- -

[property:Function customUpdateCallback]

-
- A custom update callback -
- -

Methods

- - -

[method:null add]([page:Texture texture], [page:Float size], [page:Float distance], [page:Materials blending], [page:Color color])

-
- Adds a lens flare. See the constructor for details on the parameters. -
- - -

[method:null updateLensFlares]()

-
- Updates the lens flare based on the [page:LensFlare.positionScreen positionScreen] property. -
- -

[method:Object3D clone]([page:Object3D object])

-
- object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned LensFlare Object. -
-
- Clone a LensFlare Object. -
- -

Source

- - [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] - - + + + + + + + [page:Object3D] → + +

[name]

+ +
Creates a simulated lens flare that tracks a light
+ +

Example

+ +
[example:webgl_lensflares lensflares]
+ +

Constructor

+ + +

[name]([page:Texture texture], [page:Float size], [page:Float distance], [page:Materials blending], [page:Color color])

+
+ texture -- THREE.Texture (optional)
+ size -- size in pixels (-1 = use texture.width)
+ distance -- (0-1) from light source (0 = at light source)
+ blending -- [page:Materials Blending Mode] - Defaults to THREE.NormalBlending
+ color -- The color of the lens flare +
+
+ Automatically adds a lens flare to the lensFlares array if a texture is set. +
+ +

Properties

+ + + +

[property:array lensFlares]

+
+ The array of flares as set by [page:LensFlare.add] +
+ +

[property:Vector3 positionScreen]

+
+ The position of the lens flare on the screen. +
+ +

[property:Function customUpdateCallback]

+
+ A custom update callback +
+ +

Methods

+ + +

[method:null add]([page:Texture texture], [page:Float size], [page:Float distance], [page:Materials blending], [page:Color color])

+
+ Adds a lens flare. See the constructor for details on the parameters. +
+ + +

[method:null updateLensFlares]()

+
+ Updates the lens flare based on the [page:LensFlare.positionScreen positionScreen] property. +
+ +

[method:Object3D clone]([page:Object3D object])

+
+ object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned LensFlare Object. +
+
+ Clone a LensFlare Object. +
+ +

Source

+ + [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + +

Common pitfalls

+
+ When integrating LensFlare to your existing project, make sure that your WebGLRenderer object has the "alpha" property set to TRUE. If not, then no LensFlare will ever display at all (they will always remain transparent). +
+ +