-
Notifications
You must be signed in to change notification settings - Fork 114
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
fix: WebGLMultipleRenderTargets is removed in r172. #309
fix: WebGLMultipleRenderTargets is removed in r172. #309
Conversation
…th WebGLRenderTarget. Without it the library is not working modified: src/effects/SSR/screen-space-reflections.js
this.gBuffersRenderTarget = new WebGLMultipleRenderTargets(width, height, 2, { | ||
this.gBuffersRenderTarget = new WebGLRenderTarget(width, height, 2, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be new WebGLRenderTarget(width, height, { count: 2, ... })
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should update threejs to at least 162 to use it :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we have to shim or polyfill the class here depending on the installed three version. I'll do this myself since it's a bit of a hack.
it in the file src/effects/N8AO/N8AOPostPass.js too. line 193 |
🎉 This PR is included in version 2.16.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Replaced it with WebGLRenderTarget. The library is not working without this change in the latest version of three. Moreover I haven't thoroughly tested this change. This seems to work initially. The removal also says to use the count parameter to use MTR, which I don't have enough knowledge of.