0
\$\begingroup\$

When player is walking on terrrain, around him Unity is rendering shadow coming from directional light.

But after some radius in the distance, shadows are not rendered.

Only when player walks close to some prefab, shadow is being drawn.

This is not very realistic. I would like that shadows are visible in the distance as in real terrain.

How to fix that ?

\$\endgroup\$
  • 1
    \$\begingroup\$ This is done to save performance. All major games (and probably other, minor games) do this. \$\endgroup\$ – The Mattbat999 Aug 4 '18 at 1:24
1
\$\begingroup\$

You probably need to increase the radius of the light source.

Unity models light using the Inverse Square Law, so the farther from the source, the less light hits the target, and thus the less distinct the shadow.

Also, ensure that the mesh is set to Receive Shadows, and the player is set to Cast Shadows.

\$\endgroup\$
  • \$\begingroup\$ How to increase radius of the light source? \$\endgroup\$ – eon Aug 3 '18 at 18:28
  • \$\begingroup\$ it's an option on the lighting component \$\endgroup\$ – Stephan Aug 3 '18 at 18:30
  • \$\begingroup\$ I can't find radius for directional light. It only has near plane parameter. \$\endgroup\$ – eon Aug 5 '18 at 9:33
  • \$\begingroup\$ @eon I have the same problem no shadow radius in directional light and I can't fix this issue at all \$\endgroup\$ – Arsenius Apr 19 at 6:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.