Is there a way to tweak the edge of a soft shadow (i.e. change the filtering) in order to get a softer edge?
Cheers,
Paul
Is there a way to tweak the edge of a soft shadow (i.e. change the filtering) in order to get a softer edge?
Cheers,
Paul
In some cases, yes.
The filtering used for soft directional lights with shadow cascades is fixed.
The filtering used for all other shadows (directional lights with no cascades, spot light shadows) is coded into the shaders directly. So if you do more samples in the shader, you can have softer shadows. Note however that it increases shader length a lot.
Perfect. Thanks Aras!
Cheers,
Paul
Cool, but where can I find this shader?
I don’t think this shader exists as such - I think he was saying this is possible in a shader you could code yourself.
I think I’ve found the shader, it’s in the UnityBuiltinShaders.zip file (Shadow-ScreenBlur.shader) , but how can I apply a modified version to the shadow system?
just have it in the project.
commonly a “user created version” of an internal asset will overwrite the internal one.
(necro’d the thread) Is this info relevant now? I tried adding the Shadow-ScreenBlur.shader to my project and messing with it, but nothing happened.
Yeah, trying the same, not seeing any difference. Not sure if this is still possible.