I'm currently trying to implement a type of "smooth" lighting. How can I achieve lighting which looks like this:
Using OpenGl. I've attempted to use blending modes and have come very close to making it work but it came out like this: https://pbs.twimg.com/media/A1071viCEAAlFmJ.png
Edit: The technique usedis drawing the lighting image (a white gradient) then drawing all my images using the blending effect glBlendFunc(GL_DIST_COLOR,GL_ZERO) however the images come out slightly transparent as shown previously I also have no control of how dark the black background is.
and I also wasn't able to change the alpha of the black background which I want to be able to do.
Could I get a few pointers in the right direction?