Lightning in OpenGL with spot Light

So far we have seen lighting effects which have the following properties:

  • The light is being projected from an infinite distance.
  • The rate of fading of the brightness at the circumference is very low.

But, we might want to produce lights, which have a position in the scene and are not projected from an infinite source unlike the normal lighting which we have seen so far. Like a study lamp or a spot light on a pool table, etc.

Source Code:



Spot Light in OpenGL

SHARE Lightning in OpenGL with spot Light

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *