-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
WebGPURenderer: Clear of MRT render targets executed differently in WebGL and WebGPU backend. #30567
Comments
Do you mean that bloom does overexpose when using the WebGL backend of WebGPURenderer? |
I'm unable to access the codesandbox. Do you mind sharing the live example as a fiddle (which requires no login)? Use the following as a starter template: https://jsfiddle.net/mnqr9oj0/ |
|
@Mugen87 There is no difference on a black background, but it will be very bright on a white background |
Thanks for sharing the link. The issue is that the WebGL backend uses the clear color to clear all color attachments whereas the WebGPU backend only clears the first one with the color. The other attachments with three.js/src/renderers/webgl-fallback/WebGLBackend.js Lines 794 to 798 in a5df72e
The behavior of |
At some point we maybe need the ability to define clear values for each attachment 🤔 ? |
Description
Reproduction steps
Code
// code goes here
Live example
https://codesandbox.io/p/devbox/nameless-thunder-qjzqxt?workspaceId=ws_4mXDziRfBeoC3AxqXCn3rR
Screenshots
No response
Version
173
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: