Weird shading on Android and Mobile Preview ES3.1

I found a solution now resulting in same look and feel on ES31 preview and Windows PIE/Standalone

  • Change all Static Meshes like walls or trees, that potentially cast shadows on the player character from mobility static to stationary. Otherwise, there seems to be no way on mobile to make them cast shadows on movable objects.

  • Enable Cascaded Shadow Maps from the stationary directional light. I set dynamic shadow distance to 5000, disable inset shadows for movable objects and enable far shadows with cascade count = 1 and distance = 15000, which turns out to be ok for my level.

  • Change the skylight from Mobility Stationary to Static and reduce Intensity Scale on the Instance to 0.4 (Intensity of the Lightcomponent follows this value).

This looks far better now, although problems still remain in ES31 Preview Mode:

  1. When character is backlit and walks out of a shadow (here cast by the stone in background), there’s a sudden change of shadow lightness.
    shadow-differences
    Left: characters back shadowed by the stone, Right: walking out of the shadow.

  2. Unfortunately, when Launching on my P9000 Phone, the old problem with “light in mouth” is back again: screenshot taken using adb shell screenrecord:
    real-device
    also some of the CSM shadows are missing, which definitely should be there.

I assume, that the latter problem is caused by the fact, that I’m using such an old device with Android 7, so I’ll have to test with a newer one.