Subtractive mode, dynamic shadows not cast on static objects, Unity 2022.1.8f1

Using mixed lighting in combination with subtractive mode should, according to the documentation, result in dynamic object being able to cast shadows on static lightmapped objects. This however doesn’t seem to go as intended, first off the shadowmap of dynamic objects gets created and results in some output, see the image below.
8318349--1091709--upload_2022-7-28_14-1-21.png

Afterwards the screen gets cleared before the lightmapped objects get rendered, basically overwriting the dynamic shadow output, see image below.

8318349--1091703--upload_2022-7-28_14-0-27.png

Am I misunderstanding the situation or is this intentional?

Subtractive lighting mode is a bit tricky. You will only get realtime shadows from dynamic objects when using mixed directional lights. They will not blend with the existing shadowmap, as the one subtractive lighting mode generates is additive. For other mixed lights, dynamic objects will not cast any shadows.
As for static objects, they will cast baked shadows regardless at all times.

I am indeed only using one directional mixed light, of which the dynamic objects should be casting a realtime shadow on static objects. I get that the shadow might look off because they can’t be blended, shadow is litteraly baked into the lightmap, but I’m not getting a dynamic shadow at all, none, while it should be casting one.

Edit, maybe some more clarification, the dynamic objects are shadowcasters.

If you don’t see any realtime shadows from dynamic shadow-casters when using a mixed directional light, then it’s a bug. Please report it.

Is any updates here?

Are you still hitting this issue? If so, on which version? If a bug was reported, I don’t currently have the case ID at hand, but I could go looking for it.

I’m getting this exact issue, no shadowcast from player and dynamic object with static box unchecked. It should be casting on static object. My terrain is marked static and no shadows from either player nor dynamic object :[ using Unity 2022.3.22f1

And my only mixed light I have in the scene is also directional.

I’d suggest filing a bug report. This is a rather old thread.

The setup is very simple. I have one directional mixed light, and the light mode is set to Subtractive.

I added 4 cubes to the scene - two of them are marked as Static, and the other two remain Dynamic.

After baking the shadow maps, I noticed that dynamic objects cast shadows on each other, but they never cast shadows on static objects. Meanwhile, static objects do cast shadows on each other.

It looks like static objects completely ignore shadows from dynamic ones.

However, this doesn’t match the documentation, which says that with one mixed light in Subtractive mode (treated as the “sun”), dynamic objects should be able to cast shadows on static ones.

Am I missing something here, or is this a known limitation/bug?