Precomputed Atmospheric (Single) Scattering for Unreal Engine. Looks good from within and outside of the atmosphere.
Use SweetAtmosphere to work around Unreal Engine's limitation of just allowing one SkyAtmosphere
at a time.
If you don't need to render multiple atmospheres at the same time, just use Unreal Engine's built in systems.
SweetAtmosphere does not support multiple scattering, clouds and volumetrics,
so if you need any of those, try to use the built-in SkyAtmosphere
instead.
Based on Schafhitzel, Tobias et al. “Real-Time Rendering of Planets with Atmospheres.” J. WSCG 15 (2007): 91-98.
precomputed_atmo_demo_scene.mp4
The recommended way to install SweetAtmosphere
is by adding this repository as a git submodule to your project's Plugins
folder.
Please examine the PrecomputedAtmosphereDemo
Level in the Plugin's Content
folder for a demo.
The Event Graph of BP_ExamplePlanetActor
shows the basic setup, which consists of precomputing textures
and binding them to the atmosphere material.
It is recommended to apply the atmosphere material to a cube with inverted normals. Such a mesh is supplied in the plugin content.
This project is licensed under the MIT License. Please make sure you comply with the license terms when using this library.