Unity 2018 Gpu instancing artifacts

When I use the standard shader with GPU instancing enabled some objects disappear, this effect somehow based on camera position( when I move camera other objects disappear). This effect observed only on Android(in editor and pc build all correct).

When I disable instancing all works correct. What could be causing this problem?


Screen record from Android phone. snapdragon 821. Unity 2018.16f1

3552147–285740–Test2018.zip (73.5 KB)

I know it’s late but maybe it will help someone. In my case problem was that I was using custom surface shader which wasn’t prepared to be used with instancing I added couple lines of code in it and now it works as it should. Take a look here Unity - Manual: GPU instancing . In my shader I added things like

UNITY_SETUP_INSTANCE_ID (v);
UNITY_TRANSFER_INSTANCE_ID (v, data);

in vertex part and in surface/fragment part just that single line on top

UNITY_SETUP_INSTANCE_ID(IN);

Also in structure that is passed from vertex to fragment I added UNITY_VERTEX_INPUT_INSTANCE_ID as another variable.