Merge pull request #58175 from clayjohn/VULKAN-sky-only-bug

This commit is contained in:
Rémi Verschelde 2022-02-16 10:56:34 +01:00 committed by GitHub
commit a269e78344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3286,7 +3286,7 @@ void RendererSceneRenderRD::_setup_lights(const PagedArray<RID> &p_lights, const
RS::LightType type = storage->light_get_type(base);
switch (type) {
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;
}