I have a simple day and night cycle by at day disabling OpenGL lighting and at night enabling openGL Lighting. When I enable everything appears darker. My question is How would I make it that at a specific spot there would be a light that will only light up its surrounding area for example:
Where the light is is where I want to position my light. My application is in 2D.
I read up more about 2D Lighting and I thought about it how would I do it so that I have a QUAD that is over all the screen and has a certain opacity and then i draw s circle on a QUAD that is yellow and it overwrites the quad so that the images that are drawn behind it aren't effected, like poking a hole in it..