-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Initial untested spherical harmonics implementation. #6405
Conversation
Adding this for future reference: How to calculate SH from a cube texture - http://www.sunandblackcat.com/tipFullView.php?l=eng&topicid=32 |
…e and irradiance to be calculated.
d0a9ed9
to
ab8acdc
Compare
The examples of this pullrequest are now built and visible in threejsworker. To view them, go to the following link: |
I just stumbled on this repository which may also be useful for reference. |
@mattdesl very nice. I wonder what Google is using it for? |
I've made this PR at @WestLangley's request.
This is an initial implementation of SphericalHarmonics, both the JS class and a shader. I haven't tested it, but I think that this implementation form is pretty close to what we want as it is based on the general standards.
Thus this PR is for others to build upon.