A realistic atmosphere material for both the Godot game engine and Unreal Engine 4
The Unreal version is succeeded by This guide I'll still try and answer issues here, but if you want a more up to date version, then follow the guide.
For Godot, it should be possible to simply copy-paste most of the function from shadertoy into the shader, and adding any missing parameters.
Showcase videos for godot and ue4
There's also a shadertoy version. The repo for that is here. Guide for converting shadertoy shaders to unreal is here
This resporitory provides code for adding realistic admospheres to godot and unreal engine 4. The size, color and intensity can all be tuned.
For unreal engine 4, a project including all needed assets is given (for version 4.22.3), as well as a plugin, by @gbeniola For godot, a standalone shader file is given, as well as a demo project
The UE4 and Godot versions are used a bit differently, so I've created a seperate guide for them, both of which are here: Godot and UE4
The shadertoy verion of this atmosphere can be found here, also by me.
The code is based on the implementation by scratchapixel, with a few modifications to make it work from space, and to make it look nicer
The assets are shared under the MIT license, more detail in the LICENSE file.
If you use this in a game or other software, I'm fine with being credited with "Atmosphere by Dimas Leenman, Shared under the MIT license" somewhere in the credits.