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

PMREMGenerator: Refactor code. #19011

Merged
merged 1 commit into from
Apr 2, 2020
Merged

PMREMGenerator: Refactor code. #19011

merged 1 commit into from
Apr 2, 2020

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 1, 2020

Fixed #18976.

It's now possible to create an instance of PMREMGenerator per instance of WebGLRenderer. This was achieved by move certain module scope variables and methods into object scope.

/ping @elalish

@elalish
Copy link
Contributor

elalish commented Apr 1, 2020

Thanks, that makes sense. Github made quite a mess of the diff, but I think not much actually changed besides making things members, right?

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Apr 1, 2020

Yes, it's more or less moving variables and methods from one place to another. I've tested with the examples that use PMREMGenerator and the OP's fiddle and all seem to work fine.

@mrdoob mrdoob added this to the r116 milestone Apr 2, 2020
@mrdoob mrdoob merged commit a33e5dd into mrdoob:dev Apr 2, 2020
@mrdoob
Copy link
Owner

mrdoob commented Apr 2, 2020

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.

PMREMGenerator: instances share context across multiple renderers
3 participants