Android export has certain objects not appearing correctly

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ruby Darbyshire

This is probably a really stupid one but I’m playing around with 3.1 and I’m getting weird lighting behavior. Spotlights and point lights hit all objects on Windows and all objects receive shadows correctly but on Android only one object receives the light + shadows.

Here it is working on windows - windows.png - Google Drive
and on android, where only the capsule receives light - Screenshot_20190207-172524.jpg - Google Drive

The same behavior on Android happens on all tested devices - OnePlus 5T, Galaxy S8 Edge and Huwaei P20

GLES3 produces this effect, while GLES2 lighting simply doesn’t work (I was assuming this was probably just GLES2 limitations) Any ideas where I could be going wrong?

:bust_in_silhouette: Reply From: GameVisitor

I faced 2 issues with iOS and Android not rendering properly on mobile (compared to desktop), see if any might hint you in the right direction:

  1. iOS not displaying lights correctly link1
  2. Android issue link2.
:bust_in_silhouette: Reply From: Ruby Darbyshire

I could bang my head into a wall after how silly this turned out to be.

The issue was that in Project Settings, ‘VertexShading.mobile’ was enabled. My plane was so big that none of the 4 vertices were being affected by the spotlight, so the plane was appearing much darker than it should’ve.