OpenGL Lighting
- by gopgop
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:
http://media.giantbomb.com/uploads/0/276/1414275-light_large.png
Where the light is is where I want to position my light.
My application is in 2D.