Switch render order to 2d-on-top-of-3d (#4467)
Because #3552 got merged only switching the render order is left to fix #3902
This commit is contained in:
parent
8783fae7de
commit
621f3969c7
@ -14,13 +14,6 @@ impl Node for MainPassDriverNode {
|
||||
_render_context: &mut RenderContext,
|
||||
world: &World,
|
||||
) -> Result<(), NodeRunError> {
|
||||
if let Some(camera_2d) = world.resource::<ActiveCamera<Camera2d>>().get() {
|
||||
graph.run_sub_graph(
|
||||
crate::draw_2d_graph::NAME,
|
||||
vec![SlotValue::Entity(camera_2d)],
|
||||
)?;
|
||||
}
|
||||
|
||||
if let Some(camera_3d) = world.resource::<ActiveCamera<Camera3d>>().get() {
|
||||
graph.run_sub_graph(
|
||||
crate::draw_3d_graph::NAME,
|
||||
@ -28,6 +21,13 @@ impl Node for MainPassDriverNode {
|
||||
)?;
|
||||
}
|
||||
|
||||
if let Some(camera_2d) = world.resource::<ActiveCamera<Camera2d>>().get() {
|
||||
graph.run_sub_graph(
|
||||
crate::draw_2d_graph::NAME,
|
||||
vec![SlotValue::Entity(camera_2d)],
|
||||
)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user