#bevy-plugin #visualize #vector #depth #normal #live-demo

bevy_show_prepass

A Bevy plugin to visualize depth, normal and motion vector prepasses

2 releases

0.1.1 Nov 26, 2025
0.1.0 Nov 26, 2025

#1375 in Game dev


Used in bevy_eidolon

MIT/Apache

45KB
403 lines

bevy_show_prepass

License Build Status crates.io docs.rs

A Bevy plugin to visualize depth, normal and motion vector prepasses.

Live Demo

Usage

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),
    ));
}

License

Licensed under either of

at your option.

Dependencies

~58–96MB
~1.5M SLoC