Create a planetary atmosphere

Physical parameters

Planet radius (km)
6378
Planet mass (1020kg)
59700
Surface air density
10
Temperature (K)
300
temperate
Star temperature
4000 K

Rendering options

View path samples
100
decent
Light path samples
5
Density-Opacity curve
Exponential base for density-to-opacity conversion
40
Color scatter
Exponential base for red light scattering
12.0
Atmosphere base color
RGB = ( 0.78, 0.85, 1 )
HTML and GLSL source code
This site downloads the three.js library & addons from jsDelivr CDNs.
Earth textures derived from a 2002 mosaic of Earth: WikiMedia page / NASA source