- Home /
Jagged Directional Lighting
I can't get rid of these jagged shadows projected by my real time directional light. Here is what I've tried so far:
Change the shadow resolution to high (and very high)
Changed the shadow distance (works, but then shadows don't project more than a few meters
Played with the shadow bias, normal bias, and near plane with no success
Antialiasing didn't do anything
Even with simple primitives the shadow quality is poor
Any ideas?
Either something wrong with the mesh and shader. Or you need to turn on anti-aliasing in Quality Settings or Graphic settings
Answer by kag359six · Jul 04, 2018 at 01:38 AM
Turns out the issue was that the shadow projection setting was set to Stable Fit instead of Close Fit, which gives much more crisp looking shadows at the cost of potentially wobbly shadows (I haven't noticed any wobbling yet).
That sound like Open-GL low graphics settings.
Open player settings.
Set lighting to Direct Color space. And set Graphic API for vulkan and see if anything different.
Otherwise, you might not use Unity default Shader but custom one from package.
Do you mean linear color space? I changed it but still no change in the jaggedness of shadows. The issue isn't with Unity's Standard shader because every other shader gives the same result unfortunately.
Your answer
Follow this Question
Related Questions
Close Fit, no Cascades directional shadow issue. 1 Answer
Lighting and terrain 0 Answers
Moving Directional Light Shadow Flickering 4 Answers
Shadows with Two Directional Lights 1 Answer