From 993c0e8f1ebdba3978f2789ccb498a7bd1869104 Mon Sep 17 00:00:00 2001 From: fairhill1 Date: Mon, 8 Sep 2025 13:28:37 +0200 Subject: [PATCH 1/2] Fix volumetric fog render graph crash when bevy_post_process feature is disabled --- crates/bevy_pbr/src/volumetric_fog/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/bevy_pbr/src/volumetric_fog/mod.rs b/crates/bevy_pbr/src/volumetric_fog/mod.rs index c9ad4717f6993..b0801a32e3d80 100644 --- a/crates/bevy_pbr/src/volumetric_fog/mod.rs +++ b/crates/bevy_pbr/src/volumetric_fog/mod.rs @@ -102,9 +102,11 @@ impl Plugin for VolumetricFogPlugin { ) .add_render_graph_edges( Core3d, - // Volumetric fog is a postprocessing effect. Run it after the - // main pass but before bloom. + // Volumetric fog is a postprocessing effect. Run it after the main pass. + #[cfg(feature = "bevy_post_process")] (Node3d::EndMainPass, NodePbr::VolumetricFog, Node3d::Bloom), + #[cfg(not(feature = "bevy_post_process"))] + (Node3d::EndMainPass, NodePbr::VolumetricFog), ); } } From 31ae32151fd712a4499495aeaec979663c1428e1 Mon Sep 17 00:00:00 2001 From: fairhill1 Date: Mon, 8 Sep 2025 15:51:52 +0200 Subject: [PATCH 2/2] add bevy_post_process feature to .toml --- crates/bevy_pbr/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_pbr/Cargo.toml b/crates/bevy_pbr/Cargo.toml index a5d06399ee3d3..2bc47f816c57d 100644 --- a/crates/bevy_pbr/Cargo.toml +++ b/crates/bevy_pbr/Cargo.toml @@ -9,6 +9,7 @@ license = "MIT OR Apache-2.0" keywords = ["bevy"] [features] +bevy_post_process = [] webgl = ["bevy_light/webgl"] webgpu = ["bevy_light/webgpu"] pbr_transmission_textures = []