Download

Enable close and far shadows simultaneously?

Trying to mod a game’s shadows. As you can see in the images below, the game appears to use baked distance shadows that transition to more accurate cascaded dynamic shadows closer to the camera. Problem is, some objects are not flagged to cast dynamic shadows, like the lamp pole.

farther low rez shadows

Closer high rez shadows replace farther shadows, but the lamp shadows is gone because it is not flagged for dynamic shadows

Is there a way to have both the low res baked shadows and high quality dynamic shadows exist at the same time using commands? I know they would overlap each other and look abit weird but thats fine.

I’ve found that r.Shadow.DistanceScale changes how far they transition, but doesn’t allow them both to exist on top of each other. If I set it to 0 then the dynamic shadows get completely disabled and only the low res baked shadows stay. If I set it to 10 its the opposite.