-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add emission profile to flashlight #214
Conversation
5ef4734
to
a69a694
Compare
Thanks @res2k - this looks good overall, but I'd like to request one change. Can you make the profile texture have |
…exing to just 'angle'. For better angular resolution next to the center of the beam.
Sure, updated the branch. |
Follow-up to #203. Now uses an emission profile generated from an IES file.
Screenshot from master:
Screenshot with emission profile:
Possibly future enhancements:
Currently, the emission profile is assumed to cover 90 degrees from the spotlight direction.
Might be interesting to make that customizable, e.g. for profiles that just zero out before 90 degrees, or for profiles that cover a larger range (the IES profile mentioned above actually has values for a tad over 90 degrees).