Disable frustum culling and add warning (#1761)
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.
This commit is contained in:
parent
ad60046982
commit
bf053218bf
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user