diff --git a/crates/bevy_core_pipeline/src/bloom/mod.rs b/crates/bevy_core_pipeline/src/bloom/mod.rs index f421aa33a3232..b5599f5f20e5d 100644 --- a/crates/bevy_core_pipeline/src/bloom/mod.rs +++ b/crates/bevy_core_pipeline/src/bloom/mod.rs @@ -77,7 +77,7 @@ impl Plugin for BloomPlugin { ) // Add bloom to the 3d render graph .add_render_graph_node::>( - core_3d::graph::NAME, + CORE_3D, core_3d::graph::node::BLOOM, ) .add_render_graph_edges( @@ -90,7 +90,7 @@ impl Plugin for BloomPlugin { ) // Add bloom to the 2d render graph .add_render_graph_node::>( - core_2d::graph::NAME, + CORE_2D, core_2d::graph::node::BLOOM, ) .add_render_graph_edges( diff --git a/examples/shader/post_process_pass.rs b/examples/shader/post_process_pass.rs index 9afe481b28318..d63533420af01 100644 --- a/examples/shader/post_process_pass.rs +++ b/examples/shader/post_process_pass.rs @@ -7,7 +7,8 @@ use bevy::{ core_pipeline::{ - clear_color::ClearColorConfig, core_3d, + clear_color::ClearColorConfig, + core_3d::{self, CORE_3D}, fullscreen_vertex_shader::fullscreen_shader_vertex_state, }, ecs::{query::ROQueryItem, system::lifetimeless::Read}, @@ -86,12 +87,12 @@ impl Plugin for PostProcessPlugin { // [`ViewNodeRunner`] is a helper node that will take care of updating and running a query on the view entity. .add_render_graph_node::>( // Specifiy the name of the graph, in this case we want the graph for 3d - core_3d::graph::NAME, + CORE_3D, // It also needs the name of the node PostProcessNode::NAME, ) .add_render_graph_edges( - core_3d::graph::NAME, + CORE_3D, // Specify the node ordering. // This will automatically create all required node edges to enforce the given ordering. &[