Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: Shadowed dynamic lights are forced shadowless if 4 shadowed lights are already on

Open Wheattttt opened this issue 2 months ago • 3 comments

Describe the bug

Image This image shows `light_rt_spot` entities, but projected textures also suffer from this. If your map (as a whole) has four shadow-casting dynamic light sources, the fifth and beyond will be forced shadowless.

To Reproduce

The test maps below make this very easy to reproduce. Each button activates a corresponding ptex/light_rt_spot entity, with a grate texture below to show whether or not it's casting shadows.

Issue Map

maps.zip There are two test maps here. One for regular Ptexes, and another for light_rt_spot entities.

Expected Behavior

The limit for shadowed dynamic lights prior to clustered was 8, so ideally the limit shouldn't be hit so soon? or at least, there should be a console warning when hitting the shadowed light limit, if this limit of 4 is intentional.

Operating System

Win 11

Wheattttt avatar Sep 27 '25 20:09 Wheattttt

Related issue: https://github.com/StrataSource/Engine/issues/1520

HugoBDesigner avatar Sep 27 '25 20:09 HugoBDesigner

Duplicate of #1478.

pivotman319-owo avatar Sep 27 '25 21:09 pivotman319-owo

Leaving as open for visibility sake

ozxybox avatar Sep 27 '25 21:09 ozxybox