Buran Posted July 16, 2021 Share Posted July 16, 2021 I want to clone RenderTexture, so i can add new details to it with renderer, and also keep unchanged original. But when i try to render something on cloned RenderTexture, it becomes empty. Is it intended behavior? If so, how is it intended to be done? Make new RenderTexture, render original texture to it and then add details? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 16, 2021 Share Posted July 16, 2021 clone() exists in Texture, it does not clone the actual surface, its cloning only rects and rotation. operations like clone() aren't possible without specifying renderer, because RT actually contains links to webgl objects to be copied. Copying a webgl texture is possible with several operations. If you dont know webgl internals, well, the best way is just to render a sprite with that texture to another renderTexture. However you can request that feature in pixijs github and maybe assign it a bounty. Buran 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.