Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Apr 9, 2023
1 parent b02db66 commit 554802e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_core_pipeline/src/bloom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl Plugin for BloomPlugin {
)
// Add bloom to the 3d render graph
.add_render_graph_node::<ViewNodeRunner<BloomNode>>(
core_3d::graph::NAME,
CORE_3D,
core_3d::graph::node::BLOOM,
)
.add_render_graph_edges(
Expand All @@ -90,7 +90,7 @@ impl Plugin for BloomPlugin {
)
// Add bloom to the 2d render graph
.add_render_graph_node::<ViewNodeRunner<BloomNode>>(
core_2d::graph::NAME,
CORE_2D,
core_2d::graph::node::BLOOM,
)
.add_render_graph_edges(
Expand Down
7 changes: 4 additions & 3 deletions examples/shader/post_process_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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::<ViewNodeRunner<PostProcessNode>>(
// 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.
&[
Expand Down

0 comments on commit 554802e

Please sign in to comment.