Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/tools/example-showcase/reduce-light-cluster-config.patch
6595 views
1
diff --git a/crates/bevy_pbr/src/cluster/mod.rs b/crates/bevy_pbr/src/cluster/mod.rs
2
index a8c218b44..13cc9f9c6 100644
3
--- a/crates/bevy_light/src/cluster/mod.rs
4
+++ b/crates/bevy_light/src/cluster/mod.rs
5
@@ -185,8 +185,8 @@ impl Default for ClusterConfig {
6
// 24 depth slices, square clusters with at most 4096 total clusters
7
// use max light distance as clusters max `Z`-depth, first slice extends to 5.0
8
Self::FixedZ {
9
- total: 4096,
10
- z_slices: 24,
11
+ total: 128,
12
+ z_slices: 4,
13
z_config: ClusterZConfig::default(),
14
dynamic_resizing: true,
15
}
16
17