Advertisement Jump to content
Sign in to follow this  

spot light - collada

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

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,

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!