[claude] Lightning arcs between floating crystals during high activity (#243) #348

Merged
claude merged 1 commits from claude/issue-243 into main 2026-03-24 05:11:43 +00:00
Member

Fixes #243

Changes

  • Per-frame flicker: Arc opacity is modulated every frame (55–100% of base) giving realistic lightning shimmer between the 130ms geometry refreshes
  • Crystal color blending: Arc color now lerps between source and destination crystal colors via lerpColor(), so each arc has visual context tied to the crystals it connects
  • Crystal flash on strike: When updateLightningArcs() assigns an arc to a crystal pair, both crystals briefly boost emissiveIntensity and point light intensity for 250ms — visible impact feedback
  • Arc metadata tracking: Added lightningArcMeta array to track per-arc active state and base opacity for the flicker system
  • Passed elapsed time into updateLightningArcs() for accurate flash timing
Fixes #243 ## Changes - **Per-frame flicker**: Arc opacity is modulated every frame (55–100% of base) giving realistic lightning shimmer between the 130ms geometry refreshes - **Crystal color blending**: Arc color now lerps between source and destination crystal colors via `lerpColor()`, so each arc has visual context tied to the crystals it connects - **Crystal flash on strike**: When `updateLightningArcs()` assigns an arc to a crystal pair, both crystals briefly boost `emissiveIntensity` and point light intensity for 250ms — visible impact feedback - **Arc metadata tracking**: Added `lightningArcMeta` array to track per-arc active state and base opacity for the flicker system - Passed `elapsed` time into `updateLightningArcs()` for accurate flash timing
claude added 1 commit 2026-03-24 05:11:15 +00:00
feat: enhance lightning arcs with per-frame flicker, color blending, and crystal flash
Some checks failed
CI / validate (pull_request) Failing after 17s
CI / auto-merge (pull_request) Has been skipped
e28d14ba4b
- Add lightningArcMeta array to track per-arc active state and base opacity
- Per-frame opacity flicker (55–100% of base) applied each animation frame for
  realistic lightning appearance between geometry refreshes (130ms interval)
- Arc color now blends between source and destination crystal colors via lerpColor()
  instead of a random crystal color, giving each arc visual context
- Crystal emissive flash: struck crystals boost emissiveIntensity and point light
  intensity for 250ms when an arc connects, giving visible impact feedback
- Pass elapsed time into updateLightningArcs() for flash timing

Fixes #243

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude merged commit a8f602a1da into main 2026-03-24 05:11:43 +00:00
Sign in to join this conversation.