- Home /
Survival Shooter Graphic Problem on iPhone 6
Hello everyone.
I'm learning the Project Survival Shooter on Unity Website. Everything works perfectly on my MAC. So, I try to do an extended assignment porting the project to iPhone with two virtual joysticks. everything works fine for me. However, there are some problem with rendering on my iPhone 6.
First, There are some yellow glow on the floor, This is a screenshot from my iPhone 6:
Second, My gun fire line render has no color (I'm sure that I've picked up the color in Line Rendering Material):
Does anyone try Survival Shooter on iOS or know how to fix that ?
Thank you for reading.
Answer by Thom Denick · Dec 31, 2014 at 02:58 AM
Mobile graphics have different shader requirements than desktop. These are both likely because you are using desktop shaders. Look at the meshes in the scene and make sure the materials are all using a Mobile friendly shader. For instance, your gun fire line needs to probably use Mobile -> Unlit.
Thank you, Thom Denick. That works for my gun fire line. However, $$anonymous$$obile/Unlit doesn't allow me pick color so I tried $$anonymous$$obile/Particle/VertexLit Blend and It works great.
I still have the problem with the floor ?!
If I had to guess, you have some kind of Bumped or Specular shader on there now. So, you just need to change that to $$anonymous$$obile -> Diffuse or $$anonymous$$obile -> Bumped Specular.
I tried all Shader in $$anonymous$$obile Section. Only thing work is Bumped Diffuse. However, It makes the floor become flat (Although it still uses normal texture). I guess the light reflection rate of the shader is too high, especially on the faces/pixels that completely opposite camera . But do not know to to change it.
I find the default Unity mobile shaders don't do Specularity too well. Luckily there are a bunch in the asset store if it's must-have for your game. You can also bake right into the texture with lightmaps or in $$anonymous$$aya.