We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
max_texture_cubes
1 parent 8eb077c commit e2faedbCopy full SHA for e2faedb
crates/bevy_pbr/src/render/light.rs
@@ -735,7 +735,8 @@ pub fn prepare_lights(
735
let point_light_count = point_lights
736
.iter()
737
.filter(|light| light.1.spot_light_angles.is_none())
738
- .count();
+ .count()
739
+ .min(max_texture_cubes);
740
741
let point_light_volumetric_enabled_count = point_lights
742
0 commit comments