Skip to content

Commit 9b279b3

Browse files
authored
gate bloom on hdr check (#23543)
# Objective - Fixes #23142 ## Solution - Don't run bloom if the view is not HDR ## Testing - transmission example
1 parent 5c36ecf commit 9b279b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/bevy_post_process/src/bloom

crates/bevy_post_process/src/bloom/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn bloom(
112112
downsampling_pipeline_ids,
113113
) = view.into_inner();
114114

115-
if bloom_settings.intensity == 0.0 {
115+
if bloom_settings.intensity == 0.0 || !view_target.is_hdr() {
116116
return;
117117
}
118118

0 commit comments

Comments
 (0)