I have got a scene with an object and a cubemap in OpenGL.
My atmosphere shader(rayleigh scattering) renders to a quad which is right infront of the camera. This of course obstructs vision on my object and cubemap.
I now want to combine these elements, so that I can have:
- an object in the front
- the atmosphere in "the middle"
- another object outside of the atmosphere
- the cubemap (milky way) in the background
Thing(s) I thought of:
- Drawing the atmosphere to a texture and projecting it onto the cubemap. This sounds way more complicated than it needs to be (and wrong because an object between the cubemap and the sky cannot exist with this method), though.
I must be missing the obvious. Thanks in advance.