Run outline pass after TAA if TAA plugin added first.

This commit is contained in:
Robin KAY 2024-03-02 22:54:02 +00:00
parent c4d058c94e
commit ff99c20c77

View File

@ -309,6 +309,9 @@ impl Plugin for OutlinePlugin {
// Run after main 3D pass, but before UI psss // Run after main 3D pass, but before UI psss
draw_3d_graph.add_node_edge(Node3d::EndMainPass, NodeOutline::OutlinePass); draw_3d_graph.add_node_edge(Node3d::EndMainPass, NodeOutline::OutlinePass);
if let Ok(_) = draw_3d_graph.get_node_state(Node3d::Taa) {
draw_3d_graph.add_node_edge(Node3d::Taa, NodeOutline::OutlinePass);
}
#[cfg(feature = "bevy_ui")] #[cfg(feature = "bevy_ui")]
draw_3d_graph.add_node_edge(NodeOutline::OutlinePass, NodeUi::UiPass); draw_3d_graph.add_node_edge(NodeOutline::OutlinePass, NodeUi::UiPass);
} }