Skip to content

City: retune daylight; leaf depth pre-pass and backlight - #32

Merged
Sagyam merged 2 commits into
mainfrom
claude/retune-lighting
Nov 7, 2026
Merged

Sagyam merged 2 commits into
mainfrom
claude/retune-lighting

Conversation

@Sagyam

@Sagyam Sagyam commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Daylight for the realistic models: hemisphere sky fill instead of a flat ambient by day, warmer sun with a real golden hour, nearer haze. Night unchanged.

Leaves: a cut-out-only depth pre-pass, so each pixel of a crown is lit once (Hamlet ~1.3 ms of ~20 GPU; metropolis unchanged), and backlight through the leaves. &leaves=0 turns both off.

Docs: APP.md performance and decisions, DEVELOPMENT.md flag, roadmap tree item narrowed to the far woods.

Judged from headless screenshots and timings; needs a look and an fps check in the real window.

🤖 Generated with Claude Code

Sagyam and others added 2 commits November 7, 2026 10:17
The day's fill was a flat white ambient brighter than the sun, tuned for
the low-poly kit. It lit every face alike, so the realistic buildings
looked flat and their shadows faint, and late afternoon looked overcast.

- Most of the day fill moves to the hemisphere light (cool sky above, warm
  ground bounce below); the ambient keeps its night share (DAY_FILL).
- Warmer, stronger sun; orange sun and lilac shade at golden hour, with a
  little more exposure then.
- Nearer haze, so the city stands off from the woods behind it.

Same lights, same cost. Mean brightness (bench-app LUMA, city): 13h 107.7
-> 108.1, 17:30 79.6 -> 68.9 (warmer, deliberately), 22h 23.0 -> 22.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A crown is many layers of alpha-tested cards, and with a cut-out the GPU
lights every layer before the depth test drops the hidden ones. The
leaves now draw a cut-out-only depth pass first, then the lit pass with
no depth writes, so each pixel is lit once. The pre-pass repeats the
woods' near-only vertex step (userData.vertex), or far crowns showed the
sky through (blooming white blobs), and sits a hair behind (polygon
offset).

Leaves also let light through: a crown glows against a low sun.

GPU (bench-app, headless): Hamlet fixed view 19.6 -> 18.3 ms, Hamlet
opening view 20.8 -> 19.5; metropolis unchanged (~30), its trees being
mostly impostors. &leaves=0 turns both off for comparison.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Sagyam Sagyam changed the title City: retune daylight for the realistic models City: retune daylight; leaf depth pre-pass and backlight Nov 7, 2026
@Sagyam
Sagyam merged commit 89ea4e8 into main Nov 7, 2026
6 checks passed
@Sagyam
Sagyam deleted the claude/retune-lighting branch November 7, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant