On Rendering the Sky, Sunsets, and Planets
Summary
This article walks through building an atmospheric scattering shader from raymarching basics to a complete LUT-based approach for rendering sky, sunsets, and planetary atmospheres in real time. It covers Rayleigh, Mie, ozone effects, depth handling, and world-space reconstruction in a React Three Fiber context, with code samples and practical tips.