Import
Lensflare is an addon, and must be imported explicitly, see Installation#Addons.
import { Lensflare } from 'three/addons/objects/Lensflare.js';
Properties
.frustumCulled : boolean
Overwritten to disable view-frustum culling by default.
Default is false.
- Overrides: Mesh#frustumCulled
.isLensflare : boolean (readonly)
This flag can be used for type testing.
Default is true.
.renderOrder : number
Overwritten to make sure lensflares a rendered last.
Default is Infinity.
- Overrides: Mesh#renderOrder
Methods
.addElement( element : LensflareElement )
Adds the given lensflare element to this instance.
| element |
The element to add. |
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.