OpenGL Lighting

Posted by gopgop on Game Development See other posts from Game Development or by gopgop
Published on 2012-09-13T20:09:54Z Indexed on 2012/09/13 21:50 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

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.

© Game Development or respective owner

Related posts about opengl

Related posts about 2d