THREE.JS / FOUNDATIONS — WEBGL EFFECTS
Light leaves a trail.
Keep the classic WebGL Lensflare addon explicit: shared static geometry, colored PointLights, five flare elements per light, FlyControls, and a renderer-owned animation loop.
Initializing lensflaresWebGL2
Preparing the field and flare elements.
Study issue
- BACKEND
- —
- FIELD
- —
- LIGHT / FLARE
- —
- ELEMENTS
- —
- INTENSITY
- —
- SAMPLE
- —
- BUILDS
- —
Flare controlsLIGHT / OCCLUSION / LOOP
Lensflare contract
Lensflare owns occlusion buffers and compositing materials; the caller owns PointLight attachment, element textures, static field geometry, FlyControls, and explicit teardown.
Derived from the official lensflares example, pinned source, Lensflare, LensflareElement, and FlyControls contracts. This bounded study uses generated flare textures and does not claim whole-example fidelity.