Skip to content

Conversation

@WestLangley
Copy link
Collaborator

PMREMGenerator does not dispose of the background material. This PR fixes that.

Review requested, please.

/ping @Mugen87
/ping @gkjohnson

@WestLangley WestLangley added this to the r132 milestone Aug 15, 2021
@Mugen87
Copy link
Collaborator

Mugen87 commented Aug 16, 2021

The change is good assuming _sceneToCubeUV() is not called per frame. Otherwise the previous approach would be more performant.

@WestLangley
Copy link
Collaborator Author

Thanks, guys!

@WestLangley
Copy link
Collaborator Author

@Mugen87 Maybe there is a better way to implement this?

@Mugen87
Copy link
Collaborator

Mugen87 commented Aug 23, 2021

The PR looks good to me!

@mrdoob mrdoob merged commit 07ec316 into mrdoob:dev Aug 24, 2021
@mrdoob
Copy link
Owner

mrdoob commented Aug 24, 2021

Thanks!

@WestLangley WestLangley deleted the dev_pmrem_dispose branch August 24, 2021 15:10
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.

4 participants