Introduction

This project is a physically-based, raymarched atmosphere simulation shader writen purely in GLSL that runs on the GPU. It supports a variety of features and visual effects such as rayleigh scattering, mie scattering, and aerial perspective.

It can be tested live over at Shadertoy right now, including the source code!

Features

  • Physically Based (PBR)
  • Rayleigh scattering
  • Mie scattering
  • Aerial perspective
  • Realistic earth scattering coefficients
  • "Uncharted 2" Tonemap

References