LensFlare Class
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.
Item Index
Methods
Methods
add
(
-
texture
-
size
-
distance
-
color
Add texture to the lensFlare object.
Parameters:
-
texture
TextureTexture to be used forthe new layer.
-
size
NumberSize in pixels (-1 = use texture.width)
-
distance
NumberDistance (0-1) from light source (0=at light source)
-
color
ColorTexture color