-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
WebGLRenderer: convert to ES6 class #25599
Conversation
Should we merge this after #25615 so we can test the new CI feature? |
Hmm the action worked but there has been a problem in the CI, fixed it in #25625 |
📦 Bundle size
🌳 Bundle size after tree-shakingIncludes a renderer, camera, and empty scene.
|
Maybe the action should also report an absolute value by how the size changed? I.e. not in percents but in KB. |
That'd be nice yeah. |
Related issue: Fixes #25595
Description
In order to prevent the same issue in the future, I think it's safer to convert the WebGLRenderer to ES6 class as well.
This way the
physicallyCorrectLights
can be a getter/setter of the class, which doesn't break tree-shaking.