Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set gl.clearColor to transparent for render-to-texture nodes (#421)
**Issue**: When rendering parts on the render tree to a texture ( RTT ) and the `clearColor` is set to a solid color rather than being transparent, this color is used to clear the colorbuffer of the texture's framebuffer. This results in render textures displaying a solid background color instead of being transparent. This PR addresses this issues by setting the `gl.clearColor` to transparent before the render to texture pass begins and restoring it when the pass is complete. Before: ![before](https://github.com/user-attachments/assets/868a7665-cd46-4712-97f6-76f0d428b2b6) After: ![after](https://github.com/user-attachments/assets/ae554fe7-cc18-40d5-a17c-c7784e00d0db)
- Loading branch information