- Home /
How do you get the Standard Shader to work on iOs 9?,
When I run my game on an iOs Device the Shaders don't look like the PBS Standard Shader anymore but like a Legacy Bumped Diffuse Shader. (Unity 5 --> Xcode) Is there any way to solve this ?
Thank you very much for your time and effort!,
I've already switched the graphics api, because I thought maybe metal doesn't support a specific shader feature I need for my shaders. But sadly it didn't change anything at all.
It seems that the Shader is working on iOs 9 but the normal map value is always displayed at the strenght of 1 -- adjusting the strenght via the material or a script does not change this behaviour on iOs.
Answer by JamToak · Oct 02, 2015 at 10:45 AM
On iOS for some reason the normal map in the standard shader will always be displayed at the strenght of 1. Because of that you can't just set a normal strenght value, but must edit the normal map itself. I hope this helps somebody else who encounters this problem.
Hi Jam -- so, can you use, say, just a plain texture as a normal map?? (ie a block of 1 values) ... what's the deal on that??!
@Fattie I don't know if I understood you correctly. When you export your project to iOs the Normal $$anonymous$$ap Strenght Value in the $$anonymous$$aterial gets reset to 1. (Not the Normal $$anonymous$$ap itself -- the value deter$$anonymous$$es how much the normal map influences the shader and affects the light.) That means if you though the Normal $$anonymous$$ap was to strong and toned it down a bit in the material inspector itself , it will not display as intended.
Plain Texture : it would make no sense to insert a solid color normal map (Same result as not using one but at higher processing cost)
Did I explain what you wanted to know ?
Hi Jam - thanks for replying. Yeah, you have totally explained what you mean now, and thanks. You're damned right - good one. in my case I had a further Fucking Annoying Problem: see answer below. Thanks again for your great information here! Cheers!!
I just used the new "reward user" feature to send you 100 points :) cheers..
Answer by Fattie · Nov 06, 2015 at 08:52 PM
Just one curiosity that may save someone a lot of headache ...
I happened to have "Disable Depth and Stencil" turned OFF
(ie, checkbox UN-checked)
If you do this, it gives very strange results in the iOS8 versus iOS9 situation.
Everything will work perfectly with iOS9, but, almost all shaders are plain invisible (you see nothing) with iOS8.
Just one of those frustrating things to waste four hours on.
Depressingly if you google along the lines "Unity5, iOS8 versus iOS9 shaders" there are indeed many other issues - such as the outstanding info from Jam above.
Hope this helps someone googling!
Your answer
Follow this Question
Related Questions
Reflections not working on IOS 2 Answers
Fog and Blur not affecting terrain and some trees! 1 Answer
How to edit these shaders file? 1 Answer
Would learning some GLSL help with Unity Shading? 1 Answer
ios shader problem 1 Answer