Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Golden_Phoenix

How to orient the shadow volume

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

My basic problem is that most shadow volume tuts have the shadow volume based on the model extend infinite distance... or even get bigger. My problem is Im doing planets and stars... and I need the shadow volume to terminate to a point... or even just use a cone model and orient it correctly. Any ideas how to accomplish this though? I can''t seem to get my head around how to rotate the shadow cone based on the orientation of the planet and star...

Share this post


Link to post
Share on other sites
Advertisement
You can define a maximum range for shadow extrusion.
It will be possible by setting small numbers instead of those great numbers like 1000000 or 9999999. You can also normalize the extrusion vector and multiply it by the maximum size of your volume.

Share this post


Link to post
Share on other sites

  • 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!