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

WebGPURenderer with WebGPU Backend: Clear color is not set correctly #29337

Open
WestLangley opened this issue Sep 6, 2024 · 2 comments · Fixed by #29538
Open

WebGPURenderer with WebGPU Backend: Clear color is not set correctly #29337

WestLangley opened this issue Sep 6, 2024 · 2 comments · Fixed by #29538

Comments

@WestLangley
Copy link
Collaborator

Description

Clear Color is not set correctly when clear alpha < 1.

Compare WebGPURenderer with both WebGLRenderer and WebGPURenderer/WebGLBackend. The latter two appear to render the same, and I think they are correct.

Reproduction steps

Set clear alpha to less than 1.

Code

See fiddles.

Live example

WebGLRenderer (dev): https://jsfiddle.net/ofyu03vc/

WebGPURenderer (dev): https://jsfiddle.net/fbk0d8s9/

Screenshots

No response

Version

r169dev

Device

Desktop

Browser

Chrome

OS

MacOS

@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 3, 2024

With THREE.LinearSRGBColorSpace as output color space the fiddles look identical now:

WebGLRenderer: https://jsfiddle.net/ek84jq9v/
WebGPURenderer: https://jsfiddle.net/mpvb8agu/

Because of #29538 (comment), I would say the WebGPURenderer result is actually the correct one and the issue can be closed.

@WestLangley
Copy link
Collaborator Author

I am not sure that comment is correct... gl.clear() copies the clear color into the buffer; there is no blending involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants