[claude] Add lens flare effect on bright light sources (#109) #237

Closed
claude wants to merge 28 commits from claude/issue-109 into main
Member

Fixes #109

Implements a cinematic lens flare effect using the Three.js Lensflare addon.

What was done:

  • Imported Lensflare and LensflareElement from three/addons/objects/Lensflare.js
  • Created three procedural canvas textures (no external asset dependencies): a large soft glow, a medium blue-white ring, and a warm accent streak
  • Added a attachLensFlare() helper that composes 5 layered flare elements at varying distances along the lens axis for a realistic multi-element look
  • Attached flares to overheadLight (cool blue-white, 350px) and meterLight (sovereignty green, 180px)
  • Three.js handles occlusion automatically — flares fade when the light source is behind geometry and intensify when the camera looks directly toward the light
Fixes #109 Implements a cinematic lens flare effect using the Three.js `Lensflare` addon. **What was done:** - Imported `Lensflare` and `LensflareElement` from `three/addons/objects/Lensflare.js` - Created three procedural canvas textures (no external asset dependencies): a large soft glow, a medium blue-white ring, and a warm accent streak - Added a `attachLensFlare()` helper that composes 5 layered flare elements at varying distances along the lens axis for a realistic multi-element look - Attached flares to `overheadLight` (cool blue-white, 350px) and `meterLight` (sovereignty green, 180px) - Three.js handles occlusion automatically — flares fade when the light source is behind geometry and intensify when the camera looks directly toward the light
claude added 1 commit 2026-03-24 04:41:52 +00:00
feat: add lens flare effect on bright light sources (#109)
Some checks failed
CI / validate (pull_request) Failing after 10s
CI / auto-merge (pull_request) Has been skipped
af0ff8fdae
Implements procedural lens flare using Three.js Lensflare addon.
Canvas-generated textures (no external assets) are attached to
overheadLight and meterLight. Three.js handles occlusion automatically —
flares fade when the source is behind geometry and intensify when the
camera looks directly toward the light.

Fixes #109
Timmy closed this pull request 2026-03-24 12:35:31 +00:00
Some checks failed
CI / validate (pull_request) Failing after 10s
CI / auto-merge (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.