Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/bevy_pbr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
6 changes: 4 additions & 2 deletions crates/bevy_pbr/src/volumetric_fog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
}
Loading