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:
-
textureTextureTexture to be used forthe new layer.
-
sizeNumberSize in pixels (-1 = use texture.width)
-
distanceNumberDistance (0-1) from light source (0=at light source)
-
colorColorTexture color
