Skip to content

Commit

Permalink
Disable frustum culling and add warning (bevyengine#1761)
Browse files Browse the repository at this point in the history
Frustum culling has some pretty major gaps right now (such as not supporting sprite transform scaling and not taking into account projections). It should be disabled by default until it provides a solid experience across all bevy use cases.
  • Loading branch information
cart committed Mar 25, 2021
1 parent ad60046 commit bf05321
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/bevy_sprite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ use sprite::sprite_system;

#[derive(Debug, Clone)]
pub struct SpriteSettings {
/// Enable sprite frustum culling.
///
/// # Warning
/// This is currently experimental. It does not work correctly in all cases.
pub frustum_culling_enabled: bool,
}

impl Default for SpriteSettings {
fn default() -> Self {
Self {
frustum_culling_enabled: true,
frustum_culling_enabled: false,
}
}
}
Expand Down

0 comments on commit bf05321

Please sign in to comment.