-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WebGPU: RenderTarget is upside down #6334
Comments
Yep, thanks, I'm aware of this, and have tried to fix it, but do not have a generic solution yet - there are many parts to it. As you said, there is this workaround currently: |
The
flipY
ofpc.RenderTarget
is inverted for WebGPU.Project that reproduces the bug: https://playcanvas.com/project/1176285/overview/webgpu-rendertarget-bug
WebGL:
WebGPU:
Script used to generate the image:
There is a simple fix to set
flipY
to!device.isWebGPU
, but it's probably better if this gets fixed.As you can see in the script another minor issue is that the
renderTarget
can't be in use by a camera at the same time as being used as a texture in WebGPU, with WebGL this is fine. I understand this is not something that can be fixed, but it's maybe nice to have documented somewhere if people search for this error.The text was updated successfully, but these errors were encountered: