Skip to content

Commit 1f5f739

Browse files
authored
Adjust SolariLightingNode ordering (#20568)
Tiny PR to better place the SolariLightingNode. This allows denoisers like DLSS-RR, which orders itself after EndMainPass, to run before SolariLightingNode. The new ordering also just makes more sense, as Solari essentially replaces the main pass, but runs after the gbuffer prepass.
1 parent 07d06ae commit 1f5f739

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/bevy_solari/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl PluginGroup for SolariPlugins {
4747
}
4848

4949
impl SolariPlugins {
50-
/// [`WgpuFeatures`] required for this plugin to function.
50+
/// [`WgpuFeatures`] required for these plugins to function.
5151
pub fn required_wgpu_features() -> WgpuFeatures {
5252
WgpuFeatures::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE
5353
| WgpuFeatures::EXPERIMENTAL_RAY_QUERY

crates/bevy_solari/src/realtime/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ impl Plugin for SolariLightingPlugin {
6666
)
6767
.add_render_graph_edges(
6868
Core3d,
69-
(Node3d::EndMainPass, node::graph::SolariLightingNode),
69+
(
70+
Node3d::EndPrepasses,
71+
node::graph::SolariLightingNode,
72+
Node3d::EndMainPass,
73+
),
7074
);
7175
}
7276
}

0 commit comments

Comments
 (0)