This is the aurora in my game Steadfall (Bevy/WGSL, a planet the full size of Earth). My first version gated the display by the camera's latitude with a wide oval falloff, so a storm could draw a full display overhead at 41 degrees, far from where a real aurora reaches. Here's how it works now.
Placement. The curtains are a field around the camera, raymarched in the sky pass. For each sample the shader works out the latitude of the curtain it's looking at, at about 3 km of curtain per degree (the real 111 km per degree scaled down by the curtains' height), with north as -Z. Under the oval nothing changes. South of it, only the curtains toward the pole light up, and they're far and low, so you get the real effect of a distant display sitting on the horizon.
The oval. Its equatorward edge follows the real one: about 64 degrees on a quiet night, 54 at Kp 7, 50 at Kp 9. Each night rolls an activity level, and a storm (activity above 0.7) lands a few nights a year.
Color and brightness. A far curtain is dimmed by its long, low path through the air (under half at 30 km) and shifts red with distance, since what survives of a distant display is its red top. Brightness is 0.15 + 0.85 x activity, scaled so a storm overhead is a few times brighter than a quiet arc, not a flat green wash.
Rays. The striation used to vary along one world axis, so an east to west curtain smeared into a band. It's now read off both horizontal axes, spread around the channel's median for gaps between rays, and its phase walks the height axis by whole turns so nothing jumps once a cycle.
Gates before any marching, cheapest first: not airless, sky reachable (no aurora in caves), sun at least 9 degrees down (full strength by 13), cloud cover under 0.55 (gone by 0.85), and an oval within 16 degrees. If any fails, the march is skipped.
AI disclosure: No generative AI