Map 3D: the placed lights shine at night #333
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!333
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/333/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-26 02:06 UTC · original
holdmysocks:six-map3d-lights→master· +441 −6 · 7 files · 4 commits · merged 2026-11-26 03:09 UTCThe map's exterior lights now shine in the HDR view at night. SIX-211.
What it does
Which lights. The baked map's exterior lights (
lights.bin) that are on at the hour, by their hour mask and night flag. Interior lights are left out.Shading. Lights within about 500 m of the camera are packed each time the camera moves 8 m or the hour changes:
Every map surface adds their light: meshes, map cells and terrain tiles. The light falls off as inverse square, windowed to zero at the light's range.
Coronas. Every lit light within 600 m, and the brighter ones (intensity 50 or more) to 3 km, draws an additive sprite. The light's irradiance at the eye is spread over a Gaussian of at least a pixel, so far lights shrink to dim points instead of flickering. The haze and fog dim them.
--no-placed-lights, or the placed lights shine checkbox, turns them off. The model viewer binds an empty grid and is unchanged.Own choices (not decoded)
Checked
cargo check -p sixng-gui --testsgives no warnings.lights::grid packing and the per-cell cap.