Your PG works only a single time, so you should remove the “var” in line 16 to make sure it is not the problem.
To know if it is a WebGL2 problem as @sebavan said, you should comment the line 58: this way, it won’t use any filtering method and so will work in WebGL1.
Yes, my phone is supporting WebGL2.
The are no errors in the console, its just not rendering mesh if receiveShadows=true.
And finally, commenting line 58, does nothing.
What can you guys suggest for me to get shadows working, so I do not melt my phone
w00000t not relying on contact hardening shadows should definitely make it work. Also usually not rendering would mean the shader does not compile ending up as a console error. This is definitely strange and might be related to your phone drivers ?
Is there any other examples of shadows working on your phone ?