Download

Help with shadow transition distance for baked vs dynamic shadows through cvars and config files

I’m editing a game (No More Heroes 3) using cvars through the scalability settings and have a bit of an issue with shadows. I’ve noticed that if I increase the shadow distance scale, it allows dynamic shadows to be cast farther out from the player (which is great), but it also (unfortunately) increases the distance at which lower quality baked shadows are faded out (they’re either far shadows or distance field shadows, not sure).

I want to make it so that the baked shadows stay AND the dynamic shadows render at farther distances. I know that would cause a bit of overlapping but thats fine. Anyone know a way I could do this through cvars?

Here are image comparisons showing exactly what I’m talking about.

The reason I want to do this is because not all of the objects that have baked shadows have dynamic shadows enabled, so some of them (like the stoplight pole in the first comparison) don’t have any shadows at all when you get close to them. I know the baked shadow would be low res when I get close to it, but thats better than no shadow. And at the same time I want to keep the shadowdistancescale up to have the farther rendering for dynamic shadows.