A hack to work around minimising still being broken (#4481)
# Objective - https://github.com/bevyengine/bevy/pull/4098 still hasn't fixed minimisation on Windows. - `Clusters.lights` is assumed to have the number of items given by the product of `Clusters.dimensions`'s axes. ## Solution - Make that true in `clear`.
This commit is contained in:
parent
0d2b527faf
commit
424d4d26f1
@ -391,7 +391,7 @@ impl Clusters {
|
||||
}
|
||||
fn clear(&mut self) {
|
||||
self.tile_size = UVec2::ONE;
|
||||
self.dimensions = UVec3::ONE;
|
||||
self.dimensions = UVec3::ZERO;
|
||||
self.near = 0.0;
|
||||
self.far = 0.0;
|
||||
self.lights.clear();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user