Skip to content
Discussion options

You must be logged in to vote

Of course I found the answer just after posting this 😅

Using two cameras with different RenderLayers and different ordering works for my use case.

use bevy::{prelude::*, core_pipeline::clear_color::ClearColorConfig, render::view::RenderLayers};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, setup)
        .run();
}

/// set up a simple 3D scene
fn setup(
    mut commands: Commands,
    mut meshes: ResMut<Assets<Mesh>>,
    mut materials: ResMut<Assets<StandardMaterial>>,
) {
    // circular base
    commands.spawn(PbrBundle {
        mesh: meshes.add(shape::Circle::new(4.0).into()),
        material: materials.add(Color::WHITE.into()),
        

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by negasora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant