Jump to content

  • Log In with Google      Sign In   
  • Create Account

zipwax

Member Since 12 Mar 2012
Offline Last Active Jul 29 2014 02:31 PM

Posts I've Made

In Topic: [dx9 HLSL] Shadow Map with point light

15 March 2012 - 10:21 AM

To the first guy who asked the question, I figured it out. For a point-light, you simply duplicate the exact same projection matrix as you use for the camera. In other words, move the "eye" to the point source's location (the view matrix), and calculate the projection matrix to be the same as you used for the camera. Then calculate the shadow map. Be careful that the light is not too close to your model, or the shadow map won't contain all of the model, and you'll get STRANGE shadows.

In Topic: [dx9 HLSL] Shadow Map with point light

12 March 2012 - 12:45 PM

That wasn't the most informative reply. Why represent it as six spot lights? Why can't I find a HLSL example for a point-light shadow routine where the point light simply uses a perspective transformation instead of a orthographic transformation? Are there any examples online of a point-source shadow mapping (SIMPLE) example?

PARTNERS