Jump to content
  • Advertisement
Sign in to follow this  
rampster

spot light - collada

This topic is 2483 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,
I have implemented a spot light shader with light range, inner cone angle, outer cone angle and spot direction as prime inputs. This shader is inspired from Wolfgang Engel's book programming vertex and fragment shader. My question is how do I get get my spot light shader inputs (light range, inner angle and outer angle) from a collada spot light node info (constant attenuation, linear attenuation, quadratic attenuation, fall off angle and fall off exponent)

from the look of it
outer cos angle = fall off angle

but not very sure how to calculate the light range and inner cos angle. Is it even possible?

Any help is much appreciated!!
Thanks in advance,
Ram

Share this post


Link to post
Share on other sites
Advertisement
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!