Jump to content
  • Advertisement
Sign in to follow this  
Mawww

shadow mapping multiple lights

This topic is 5104 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

ok, i managed to add shadow mapping to my 3D engine (to be released soon) but is there a better way to add others light contribution (like other shadowing lights) than saving the result to a texture and showing the texture blended at the end ? how to add light contribution the fast and clean way ?

Share this post


Link to post
Share on other sites
Advertisement
The approach for multiple lights is always the same:Multiple rendering passes(one light per rendering pass),and additive blending.You don't have to save anything to a texture,you can achieve the blending directly into the framebuffer.

Share this post


Link to post
Share on other sites
If you're running on hardware that can handle long fragment programs you can also do the shadowing (and shading) for several light in a single pass. This will be a win if you're memory bandwidth bound and/or you have many overlapping lights.

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!