So I started the day by adding a new C++ mesh entity type I called Atmosphere. The shader needs so many variables this was the easiest way to do it. So I set up the variables, exposed to both property layer (lua scripts, xml) and the uniforms sent to shader. I added a component that allowed me to alter the variables during runtime.
Well, as I seem to remember, the atmospheric scattering algorithm is really fragile where you really have to hit just the right variable combination in order to achieve the color scattering result you want... My planet is also moving with the player, so O'Neil's shader that expects the planet to be in origo had to go through some minor modifications...
In the end, I didn't manage to get it working today... After quite a few hours of variable tweaking and shader experiments with the famous shader variable to color debugging, trying to achieve my goal, I gave up on getting it to work... so I started to focus more on using some of the variables to achieve "some" form of scattering
Well, for a long day of work, the end result is laughable... and I really felt like I wasted an entire day on this. Tomorrow I will most definitely get started on more physics/collision related stuff, as that's very important on the exam.
One can't always come out on top...