Search code examples
renderingtexturesbevy

Is there a way to create "render texture" in Bevy?


I'd like to create a portal-like effect using Bevy. It seems Unity has a render texture to achieve that.

Is there a way to do the equivalent in Bevy? If not, is there a plan to support that in the future?


Solution

  • This has become very easy with Bevy 0.8's Camera Driven Rendering

    You simply assign an image render target to a camera:

    camera.target = RenderTarget::Image(image_handle);
    

    For a complete example see the official render to texture example.