Skip to content

A C++/DirectX 11 implementation of "A Scalable and Production Ready Sky and Atmosphere Rendering Technique"

License

Notifications You must be signed in to change notification settings

AirGuanZ/AtmosphereRenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atmosphere Renderer

A C++/DirectX 11 implementation of "A Scalable and Production Ready Sky and Atmosphere Rendering Technique"

Features

  • interactive edition of atmosphere model parameters
  • efficient generation of low-resolution sky-view LUT and aerial perspective LUT
  • volumetric shadow

Build

git clone --recursive https://github.com/AirGuanZ/AtmosphereRenderer.git
cd AtmosphereRenderers
mkdir build
cd build
cmake ..

Control

  • move: W, A, S, D, Space, LShift
  • show/hide cursor: Ctrl.

Performance

Crucial shader performance measured on NVIDIA GTX 1060:

  • Sky-view LUT generation (64 * 64): 0.036 ms
  • Aerial perspective LUT generation without volume shadow (64 * 64 * 32): 0.03 ms
  • Aerial perspective LUT generation with volume shadow (200 * 150 * 32): 0.2 ms

Shaders can actually be further optimized by replacing feature flags in constant buffers with compile-time macros.

Using LUTs with higher resolution or ray marching with more number of steps results in better quality and of course, lower performance.

Screenshots

Tips

  • Planet-scale rendering are not considered. Thus the sky may become strange when camera is out of the atmosphere.
  • Terrain renderer is just used to show the aerial perspective effect (transmittance and in-scattering), so multi-scattering related to terrain is simply ignored.
  • Terrain occlusion is ignored when computing multi-scattering LUT.
  • Sunlight is approximated as a directional light when computing atmosphere scattering. Thus a very big sun disk will always have an unnatural appearance.

About

A C++/DirectX 11 implementation of "A Scalable and Production Ready Sky and Atmosphere Rendering Technique"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages