WebGPURenderer: Add setOutputRenderTarget()#30459
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
|
Should we call it |
|
If the parameter is always a render target, I would adhere to the To clarify the name |
setOutputTarget()setOutputRenderTarget()
|
There is one remaining issue: After this PR when leaving a XR session, There are no warnings/errors in the browser console so I suspect the engine does not properly detect the render target state change. |
Related issue: #30387 (comment)
Description
The PR introduced
Renderer.setOutputRenderTarget()which is focused on screen output, making it less confusing to use RenderTargets and initial support forPostProcessinginXRManager.