-
I have a test program with 3 shadow-casting spot lights, identically configured except for intensity. If I have spotlight 1 set to high intensity (1000000 lumens) and spotlights 2 and 3 turned way down to 0.1 lumens, I get a good shadow. Same if spotlight 2 is bright and 1 and 3 are dim. But if spotlight 3 is bright and 1 and 2 are dim, it casts no shadow. At that point, one might think there is something wrong with spotlight 3. But if I then remove spotlight 1 and/or spotlight 2 from the scene, there's a shadow. Does this make any sense to anyone? If not, I'll try to construct a proper bug report. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
There is a limit to the number of spot lights that can cast shadows at the same time in the frustum. @bejado can give you the details. It might just be that we cast shadows for the first 2 spotlights in the scene so 3, even when bright, doesn't get one. We've been thinking of giving priority to lights closer to the camera or the brighter lights (it should really be a combo of both). |
Beta Was this translation helpful? Give feedback.
-
@bejado Is that correct that you can't have more than 2 shadow-casting spot lights visible at a time? I was hoping to use Filament to replace OpenGL in my product, but this shadow limitation might be a deal-breaker. |
Beta Was this translation helpful? Give feedback.
There is a limit to the number of spot lights that can cast shadows at the same time in the frustum. @bejado can give you the details. It might just be that we cast shadows for the first 2 spotlights in the scene so 3, even when bright, doesn't get one. We've been thinking of giving priority to lights closer to the camera or the brighter lights (it should really be a combo of both).