Log inGet started
Package

arcticKit.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

Aurora

The northern lights over the tundra and the one shared choice of which kind shows. Four kinds, drawn by arcticKit's polar sky shader in closed form (each curtain is a vertical sheet a view ray meets analytically, so there is no raymarch and no extra draw call):

  • curtains: classic green curtains with rippling folds and a pink lower fringe
  • storm: tall crimson and purple rays above a bright yellow-green band
  • crown: a corona of green and violet rays converging near the zenith, pulsing outward
  • quietArc: a faint, still green arc low over the northern horizon
  • off

Aurora.set(kind, { fade }) changes it for every player: it writes the ArcticAtmosphere component's synced aurora field when this peer may, and broadcasts it on arcticKit.aurora; a late joiner reads the field and asks the room. Aurora.shade(dt, visibility) gives the sky shader its lanes. Atmos calls it with the darkness of the sky, so the lights show at night, faintly at dusk, never by day or under cloud.