Skip to content

Commit daeb2a9

Browse files
committed
fix layer
1 parent 5a1a604 commit daeb2a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/bevy_egui.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn voxel_plot_setup(
102102
let threshold = instances.last().unwrap().color[3];
103103
println!("Auto threshold for opacity was: {}", threshold);
104104
}
105-
let first_pass_layer = RenderLayers::layer(1);
105+
let first_pass_layer = RenderLayers::layer(0);
106106

107107
commands.spawn((
108108
Mesh3d(meshes.add(Cuboid::new(cube_width, cube_height, cube_depth))),
@@ -115,7 +115,6 @@ fn voxel_plot_setup(
115115
// We must disable the built-in frustum culling by adding the `NoFrustumCulling` marker
116116
// component to avoid incorrect culling.
117117
NoFrustumCulling,
118-
first_pass_layer.clone(),
119118
));
120119

121120
commands.insert_resource(AmbientLight {

0 commit comments

Comments
 (0)