Usage
Add bevy
and bevy_pixels
to Cargo.toml
. Be sure to disable bevy
's render
and bevy_wgpu
features (with default-features = false
) as they will conflict with rendering provided by bevy_pixels
.
[]
= { = "0.6.1", = false }
= "0.4"
Add PixelsPlugin
to your Bevy project.
use *;
use *;
Use PixelsResource
in your systems.
Bevy and Pixels version mapping
bevy_pixels | bevy | pixels |
---|---|---|
0.1 | 0.5 | 0.3 |
0.2 | 0.5 | 0.8 |
0.3 | 0.6 | 0.9 |
0.4 | 0.6.1 | 0.9 |
Examples
Hello Bevy Pixels
This example is based off minimal-winit
example from the pixels project.
Todo
- Add more configuration around how rendering is performed.
- Add support for multiple windows.