The atmospheric scattering is almost working properly now. It is possible to move the sun to any position, causing different colors of light scattering onto the terrain.
Here are some images
The next week will probably be spent trying to fix the problems shown above and other things.
Bonus – video of the program in action