Welcome to preintegrated sky shader with no raymarching. That was a proof of concept that worked quite well. - to see if sky can be approximated via single formula.
Findings:
- Yes we can make preintegrated sky
- Mathcad cannot handle 100% accurate integrals so they should be replaced with more simple lerps.
- Mie scattering is not working properly, but absolutely doable with single profile
Next steps to do:
- Make atmospheric composition with particle profiles in script and pass single profile to shader. has to work.
- compare with raymarching methods, it may turn out it was not worth the hassle all along.