bevy_show_prepass

Crates.iobevy_show_prepass
lib.rsbevy_show_prepass
version0.1.1
created_at2025-11-26 00:07:45.906444+00
updated_at2025-11-26 00:21:53.203106+00
descriptionA Bevy plugin to visualize depth, normal and motion vector prepasses.
homepage
repositoryhttps://github.com/jannik4/bevy_show_prepass
max_upload_size
id1950679
size171,118
Jannik Obermann (jannik4)

documentation

README

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.

Commit count: 0

cargo fmt