Shadow mapping: what is the light looking at?

Posted by PgrAm on Game Development See other posts from Game Development or by PgrAm
Published on 2012-10-15T19:39:39Z Indexed on 2012/10/15 21:50 UTC
Read the original article Hit count: 313

Filed under:
|
|

I'm all set to set up shadow mapping in my 3d engine but there is one thing I am struggling to understand. The scene needs to be rendered from the light's point of view so I simply first move my camera to the light's position but then I need to find out which direction the light is looking. Since its a point light its not shining in any particular direction. How do I figure out what the orientation for the light point of view is?

© Game Development or respective owner

Related posts about opengl

Related posts about shadows