You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Properly exclude lights that are marked as sky only
This commit is contained in:
@@ -3286,7 +3286,7 @@ void RendererSceneRenderRD::_setup_lights(const PagedArray<RID> &p_lights, const
|
|||||||
RS::LightType type = storage->light_get_type(base);
|
RS::LightType type = storage->light_get_type(base);
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case RS::LIGHT_DIRECTIONAL: {
|
case RS::LIGHT_DIRECTIONAL: {
|
||||||
if (r_directional_light_count >= cluster.max_directional_lights) {
|
if (r_directional_light_count >= cluster.max_directional_lights || storage->light_directional_is_sky_only(base)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user