I'm trying to implement atmospheric glow like this. It was a huge pain to get it done, since I'm new to FBO and OpenGL, but I managed to do something similar to what the OP wanted.

I followed his steps and now I'm rendering the resulting texture to my space environment. However, the texture is completely opaque and I only need the glow parts to be visible. How can I make the rest of the texture transparent? I'm using OpenGL ES 2 on Android.

  • \$\begingroup\$ Just as a suggestion have you looked into shader atmospheric scattering? It seems like it may be a bit easier http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html \$\endgroup\$ – pl12 Dec 18 '13 at 2:01
  • \$\begingroup\$ Yes I have a little bit, but I went for framebuffers & blur instead. I am interested in the answer to the question because I may need it in quite a few other situations. \$\endgroup\$ – async Dec 18 '13 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.