We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As a Developer using TresJS I would like to have a composable useFBO that leverages the effort of creating a THREE.WebGLRenderTarget
useFBO
THREE.WebGLRenderTarget
const target = useFBO({ stencilBuffer: false })
Drei's https://github.com/pmndrs/drei/blob/master/src/core/useFBO.tsx
Reference: https://github.com/pmndrs/drei/tree/master#usefbo
Implement a composable that accepts:
width
height
samples
depth
And returns the renderTarget, The rendertarget should be automatically disposed when unmounted.
No response
The text was updated successfully, but these errors were encountered:
Any update on this? 🙂
Sorry, something went wrong.
@kekkorider Would you like to take this?
I can give it a try 🤓
@kekkorider fantastic! We're here to help, so please feel free to contact me in discord (Io anche parlo italiano) or Alvaro
<Fbo />
kekkorider
Successfully merging a pull request may close this issue.
Description
As a Developer using TresJS I would like to have a composable
useFBO
that leverages the effort of creating aTHREE.WebGLRenderTarget
Drei's
https://github.com/pmndrs/drei/blob/master/src/core/useFBO.tsx
Reference:
https://github.com/pmndrs/drei/tree/master#usefbo
Suggested solution
Implement a composable that accepts:
width
height
/samples
// Defines the count of MSAA samples. Can only be used with WebGL 2. Default: 0depth
// If set, the scene depth will be rendered into buffer.depthTexture. Default: falseAnd returns the renderTarget, The rendertarget should be automatically disposed when unmounted.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: