Rendering Realistic Skies and Planetary Atmospheres in Real-Time with Shaders
By
Maxime Heckel
The kind of bagel that ruins lesser bagels for you.
Summary
This article explores the technical and visual process of rendering realistic skies, sunsets, and planetary atmospheres in real-time using browser-based shaders. It covers the physics of atmospheric scattering (Rayleigh and Mie scattering, ozone absorption) and demonstrates how to implement these effects programmatically through techniques like sky domes, raymarching, and shader programming. The author uses a NASA photo of the space shuttle Endeavour at sunset as inspiration to explain both the science behind atmospheric colors and the engineering required to reproduce them digitally.
Key quotes
· 3 pulledThere's this photo that's been sitting on my inspiration board for a while, of the space shuttle Endeavour, suspended in space in low Earth orbit at sunset.
It shows Earth's upper atmosphere as a backdrop, featuring beautiful, colorful layers ranging from dark orange to blue before fading away into the deep black of space.
Not only is that gradient of color aesthetically pleasing, but the phenomenon behind those colors, atmospheric scattering, is even more of an interesting topic once you start looking into how it works and how to reproduce it.
You might also wanna read
Exploring surfel-based global illumination with WebGPU on the open web
A technical blog post exploring the use of WebGPU to compute real-time global illumination using surfels (surface patches). The author inves
Implementing Colored Penumbra Shadow Effects in Unreal Engine 5
This article describes a technique for implementing "Colored Penumbra" or "Colored Shadow Terminator" effects in Unreal Engine 5. The author
Experimental WebGPU Physics Engine Using AVBD Solver for Rigid-Body and Soft-Body Simulations
This article presents an experimental WebGPU physics engine called webphysics that implements an AVBD-style (Augmented Vertex Block Descent)
TrueType Font Contains 3D Raycasting Engine in Hinting Virtual Machine
A developer created a DOOM-style 3D raycasting engine that runs inside a TrueType font's hinting virtual machine. The project exploits the T
Slug Algorithm: 10 Years of GPU-Based Font Rendering Technology
Eric Lengyel reflects on the 10-year anniversary of the Slug Algorithm, a GPU-based font rendering technique he developed in 2016. The artic
Reducing Trigonometric Functions in Computer Graphics Algorithms
The article argues for reducing trigonometric functions in computer graphics algorithms, advocating for more efficient mathematical approach
