Skip to content

Author the sky sun by bearing and warn on clipped or crossfaded skies - #1748

Merged
Noisemaker111 merged 1 commit into
mainfrom
claude/sky-sun-authoring
Sep 5, 2026
Merged

Noisemaker111 merged 1 commit into
mainfrom
claude/sky-sun-authoring

Conversation

@Noisemaker111

Copy link
Copy Markdown
Owner

Sky sun authoring plus the two dev warnings from #1660. The dome sun and an authored directional light disagreed on the-robots because the dome glow came from the preset bearing.

  • packages/core/src/world/features.ts: SkySunConfig (azimuth/elevation degrees) on sky({ sun }); once-per-site warning when zenithColor/horizonColor ride a timeOfDay crossfade.
  • packages/core/src/devtools/warnOnce.ts: shared dev-only warn-once helper.
  • packages/shell/src/environment/daylightCycle.ts: sunDirectionFromBearing, bearingFromDirection; the day arc rotates so noon lands on the authored bearing.
  • packages/shell/src/environment/Daylight.tsx: radius-vs-camera-far warning; time-of-day and biome domes now draw the sun disc and track it per frame.
  • packages/shell/src/Shell3dPresentation.tsx: with no sky.sun and a fixed preset, the dome sun is derived from the first authored directional light.
  • Editor: sunAzimuth/sunElevation on the scene document, bearing/height sliders in LightingPanel.
  • CHANGELOG, generated api/capabilities.

Closes #1660

Verification: check-types core/shell/editor pass; test features, editor, environment, daylightCycle pass; check-stateful-ratchet, check-doc-symbols, check-orphan-ratchet, check-changelog pass.

the-robots --mode play, before (dome sun at the preset bearing, off frame) / after (dome sun derived from the authored directional light):

sky-sun-before
sky-sun-after

🤖 Generated with Claude Code

sky({ sun: { azimuth, elevation } }) places the dome glow and sky-owned sun light;
under timeOfDay the day arc swings around that noon position. Unset, the shell
derives it from the first authored directional light so the dome sun agrees with
the shadows. Time-of-day domes now draw the sun disc. Dev warnings once per site
for sky.radius past the camera far plane and for noon-only tints under timeOfDay.
Editor lighting panel gains bearing/height sliders.

Refs #1660

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Noisemaker111
Noisemaker111 enabled auto-merge (squash) September 5, 2026 08:23
@Noisemaker111
Noisemaker111 merged commit a53de62 into main Sep 5, 2026
6 checks passed
@Noisemaker111
Noisemaker111 deleted the claude/sky-sun-authoring branch September 5, 2026 08:24
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.

[FEATURE] Sky authoring seams: sun direction, radius guard, preset crossfade

1 participant