Describe the bug
When the light is somewhat parallel to the surface it's lighting, you start seeing big circles when zooming in and out.
To Reproduce
- Create a new scene
- Make sure the main light is casting shadows
- Make sure cascaded shadows are enabled
- Create a large box
- Apply a material with toon shading to that box
- Rotate the light parallel to one of the sides of the box
- Move back and forth with the camera to see the artifact
Expected behavior
Lighting should remain somewhat consistent when moving between shadow cascades
Screenshots
https://github.com/user-attachments/assets/56a58d5e-77a4-4679-8714-ae3e4b8bd36f
Additional context
I believe this is an issue with shadow attenuation in shader grahps in general, as I can reproduce similar artifacts when making my own custom lighting.
This person has a similar issue:
https://discussions.unity.com/t/custom-lighting-shadow-attenuation/1705978/3
Describe the bug
When the light is somewhat parallel to the surface it's lighting, you start seeing big circles when zooming in and out.
To Reproduce
Expected behavior
Lighting should remain somewhat consistent when moving between shadow cascades
Screenshots
https://github.com/user-attachments/assets/56a58d5e-77a4-4679-8714-ae3e4b8bd36f
Additional context
I believe this is an issue with shadow attenuation in shader grahps in general, as I can reproduce similar artifacts when making my own custom lighting.
This person has a similar issue:
https://discussions.unity.com/t/custom-lighting-shadow-attenuation/1705978/3