| Crates.io | bevy_show_prepass |
| lib.rs | bevy_show_prepass |
| version | 0.1.1 |
| created_at | 2025-11-26 00:07:45.906444+00 |
| updated_at | 2025-11-26 00:21:53.203106+00 |
| description | A Bevy plugin to visualize depth, normal and motion vector prepasses. |
| homepage | |
| repository | https://github.com/jannik4/bevy_show_prepass |
| max_upload_size | |
| id | 1950679 |
| size | 171,118 |
A Bevy plugin to visualize depth, normal and motion vector prepasses.
For a complete example, see the simple example.
// Add the plugin
app.add_plugins(ShowPrepassPlugin);
fn setup(mut commands: Commands) {
commands.spawn((
Camera3d::default(),
// Add the desired prepasses to the camera (DepthPrepass, NormalPrepass, MotionVectorPrepass)
DepthPrepass,
// Show the desired prepass (ShowPrepass::Depth, ShowPrepass::Normals, ShowPrepass::MotionVector)
ShowPrepass::Depth,
// Optionally scale the depth visualization, e.g. depth = depth^0.75
ShowPrepassDepthPower(0.75),
));
}
Licensed under either of
at your option.