Skip to content

Commit

Permalink
feature flag pain
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoskey committed Dec 7, 2024
1 parent f064d9e commit f6cf9e0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions crates/bevy_pbr/src/light/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,10 @@ impl LightShadows {

#[inline]
pub(crate) fn if_soft(&self, num: f32) -> f32 {
#[cfg(not(feature = "experimental_pbr_pcss"))]
return 0.0;

#[cfg(feature = "experimental_pbr_pcss")]
return match self {
LightShadows::Soft => num,
_ => 0.0,
};
match self {
LightShadows::None | LightShadows::Hard => 0.0,
_ => num,
}
}
}

Expand Down

0 comments on commit f6cf9e0

Please sign in to comment.