Jump to content
  • Advertisement
Sign in to follow this  
treeway

1 shadow map per light?

This topic is 3897 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Ive implemented shadow mapping, its working for one light, am i right in thinking that to do multiple lights i have to create 1 shadow map per light and render the scene again for each light?

Share this post


Link to post
Share on other sites
Advertisement
Yes, you'll need to render the scene once from the point of view each shadow-casting light source. Actually point lights require you to render the scene 6 times per light, at least if you're using the standard cubemap method.

As a side note...when you have many shadow casters, you'll want to make sure you're only rendering the objects that are going to cast or receive shadows from that particular light source. You'll also want to make sure that a light's entire volume is visible on screen, so that you're not wasting time rendering shadow maps for lights that aren't even visible. You can do this via frustum culling, or some other method.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!