Closed alvarosabu closed 1 year ago
Any update on this? 🙂
@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
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