Skip to content
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

Added LightProbe class #16191

Merged
merged 1 commit into from
Apr 11, 2019
Merged

Added LightProbe class #16191

merged 1 commit into from
Apr 11, 2019

Conversation

WestLangley
Copy link
Collaborator

@WestLangley WestLangley commented Apr 8, 2019

We will have to continue to discuss this, and what it represents. To me, it models indirect, ambient light, and in that sense, is a generalization of AmbientLight or HemisphereLight.

I've included a method LightProbe.setFromCubeTexture() that computes the SH coefficients. From testing, it works as one would expect. The method can be replaced with a faster GPU-based one later.

This PR relies on #16187.

@WestLangley
Copy link
Collaborator Author

WIP. Sphere illuminated by LightProbe only. Probe SH coefficients computed from environment map.
Screen Shot 2019-04-07 at 11 54 44 PM

@richardmonette
Copy link
Contributor

This looks awesome!

The method can be replaced with a faster GPU-based one later.

I've been working on a GPU based version here #16152 which I think I can make a bit more mathematically correct referencing this CPU implementation!

@WestLangley WestLangley added this to the r104 milestone Apr 11, 2019
@WestLangley WestLangley merged commit c14c769 into mrdoob:dev Apr 11, 2019
@mrdoob
Copy link
Owner

mrdoob commented Apr 12, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants