Hi guys,
I’m losing my mind a little here. I have a particular issue in regards to shadows flickering or rather, wobble due to my day/night cycle and I’ve had to hit the forums to see if anyone else has mitigated the issue or have alternative ideas.
You can see the problem here: https://www.youtube.com/watch?v=IrMHcfgrQJs
My game is using a two tone cel shaded post process for a number of foliage and assets in game and the directional light movement is updating per tick or rather, frame.
Steps I have taken so far to try and mitigate the issue (which has helped somewhat)
- Adjusted Shadow Bias, Distribution Exponent, Cascades Amount and Transition Factor (tuned to the best results I can get
- Stepped the light movement (although this helped the effect is still there, just “slower”
- Set r.shadow.filtermethod to 1 (improves the flickering very well but introduces weird artifacts on certain objects, I would like to avoid this)
I can mitigate the problem entirely by enabling virtual shadow maps but due to the WPO and animated light nature I’m invalidating every frame which is a huge performance hit.
Has anyone encountered this issue or have better knowledge than myself (very easy to achieve lol) and have some solutions?