Problem with shader on some devices
Hello everyone!
I have some problem with shader and I hope somebody can help me find out how better to solve it. The main idea: I created the starry sky (this is just a set of polygons that are connected by degenerate triangles). Inside the shader, I change vertices positions (to get a scale effect) and the alpha value (to get a blink effect). I attached the video to better understand what I meant and the source of the project (links below).
Everything works well on many telephone devices, but on some of them, there is a problem with the shader (when batching is disabled - everything is ok on these phones). I know that "Some shaders (mostly ones that do object-space vertex deformations) do not work when Draw Call Batching is used – that’s because batching transforms all geometry into world space, so “object space” is lost.".
But it seems that this is not such case. Moreover, as I said, it may work well on 6-7 phones (including iPhone 4s, iPhone5s) and be broken on 2 phones (including iPhone SE). The effect gets bigger with time. So at the start, you may not notice it but in 5 seconds it will have the effect and in 10 seconds more much stronger effect and so on.
I also attached the video with that effect.
So I will appreciate if someone can to look on the project and give some advice how to solve this problem. Disable batching - one of a solution, but I think this is not the better solution.
https://drive.google.com/file/d/1wL3-Jvm7y3PNK4vn3Fb7veEBbYQ8WOTj/view (Video of correct work)
https://drive.google.com/open?id=1i_gnyQ5Cf8hFpnGs4Hwl93sO1QGAdeUZ (Video of incorrect work)
Project source
Your answer

Follow this Question
Related Questions
Making a custom shader use GPU Instancing? 1 Answer
Can't find shader on iOS - GpuProgram creation error: shader program type is unrecognised. 2 Answers
FPS shader fixing 1 Answer
Add distance fade to his shader 1 Answer
How to make 3d Text invisible through 3D Game object... for a complete beginner 1 Answer