While both renderer deferred and pssm works great but their shadows doesn't seems to be working as they should. If we load a scene with deferred renderer enabled, it appears that everything works fine
Until, you load point or spot light. Things begin to look weird.
When the light is close to the object it is casting shadow of things look fine.
However, if light move away from the object, there is no shadows
Same thing happens for point light.
Possible reason for this issue could be that the shadowmaps aren't rendered correctly but dump texture of shadowmap says otherwise.
Maybe its the hardware issue. I tried it on different hardware but still the issue persists.
Now the only possible reason for this issue to occur could be at the shader level.
shadow_depth.xml is responsible for mapping the shadows but nothing seems to be wrong there. Could be, the shader is taking slices into account which it shouldn't or coordinates from use_buffer.xml aren't sent right.
In addition to that pssm render manager is broken. It used to work earlier but now it doesn't exhibits shadows. weird!