-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
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
[Merged by Bors] - add render_to_texture example #1927
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add the example to the README.md in the examples folder.
This is half-way to #22, correct? |
Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
Yes. The TextureNode from this PR may be used as replacement of WindowSwapChainNode, I've created POC: https://github.com/mrk-its/bevy/blob/render_to_file/examples/3d/render_to_file.rs. |
done |
Thank you for this, @mrk-its! I'm already thinking how we can add a post-process pass, once this is merged. I already have an upscale + post-process pass in my own prototype, but it's probably a bit of work to make it generic enough to PR. |
Looks good to me! Just made some small tweaks to the trait / components in the example to cut down on boilerplate and be a bit more explicit. (As an aside, I'd like to consider moving away from the "graph extension trait" pattern internally as well. I think functions work fine, but we could also consider a single "graph plugin" trait as an alternative) |
bors r+ |
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
Pull request successfully merged into main. Build succeeded: |
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
No description provided.