Import
LensflareElement is an addon, and must be imported explicitly, see Installation#Addons.
import { LensflareElement } from 'three/addons/objects/Lensflare.js';
Constructor
new LensflareElement( texture : Texture, size : number, distance : number, color : Color )
Constructs a new lensflare element.
| texture |
The flare's texture. |
| size |
The size in pixels. Default is |
| distance |
The normalized distance ( Default is |
| color |
The flare's color |
Properties
.distance : number
The normalized distance ([0,1]) from the light source.
A value of 0 means the flare is located at light source.
Default is 0.
.size : number
The size in pixels.
Default is 1.