-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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: copyFramebufferToTexture
- support for post-rendering usage
#29729
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
copyFramebufferToTexture
- support for post-rendering usecopyFramebufferToTexture
- support for post-rendering usage
I'm testing with a WebGPU port of With this PR, I get the following runtime error with WebGPU:
The WebGL backend produces no error but the top left view is empty (so the copy does not work yet). |
The last commit fix the WebGPUBackend but seems that y-axis is fliped. |
When I flip the uv coordinates of the sprite which displays the sprite.geometry = flipY( sprite.geometry );
function flipY( geometry ) {
const uv = geometry.attributes.uv;
for ( let i = 0; i < uv.count; i ++ ) {
uv.setY( i, 1 - uv.getY( i ) );
}
return geometry;
} |
I would like to revisit this function of the API soon, there are still some revisions related to color outputs that need to be done. |
Related issue: Fixes #29713
Description
Added support for post-rendering usage.