When I set up shadow with 4 cascades in my Quality settings, the cascades don’t actually work. In Fame-debugger, I found that the shadow still rendered within only one cascade.
And nothing appears when I turn on the shadow cascades draw mode in Scene View.
Here is my Quality settings.
Shadowmask mode: Distance Shadowmask
Shadows: Hard and Soft Shadows
Shadow Resolution: High Resolution
Shadow Distance: 50
Shadow Near plane Offset: 2
Shadow Cascades: Four Cascades
My Uinty version is 2019.3.0f1
Anyone could help?
THANK YOU!
Hey thanks for the info.
Recently I found that on mobiles the CSM shadow depth layout is totally different from PC even the scene&cam set is all the same. That explains a lot.
We had CSM on mobile in another project last year, but don’t remember the details, maybe there’re more you can share?
To the best of my knowledge, Unity’s built in shadow system does not, and has never supported CSM on mobile platforms. At least not when using the forward rendering path. It’s possible it’s supported by the deferred rendering path now that deferred is supported on some mobile platforms, so that’s my best guess. I think ARKit requires forward rendering, so no cascades.
There have been third party assets that render out cascaded shadow maps on all platforms, but the ones I know of have all been dead for 4+ years.