Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by JamToak · Sep 28, 2015 at 06:43 AM · unity 5shaderiosgraphicsmobile devices

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!,

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JamToak · Sep 26, 2015 at 09:38 PM 0
Share

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.

avatar image JamToak · Sep 27, 2015 at 11:17 AM 0
Share

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.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Fattie · Nov 06, 2015 at 05:43 PM 0
Share

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??!

avatar image JamToak · Nov 06, 2015 at 07:50 PM 0
Share

@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 ?

avatar image Fattie · Nov 06, 2015 at 08:53 PM 0
Share

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!!

avatar image Fattie · Nov 06, 2015 at 08:54 PM 0
Share

I just used the new "reward user" feature to send you 100 points :) cheers..

avatar image JamToak · Nov 06, 2015 at 09:16 PM 0
Share

@Fattie Thank you ! :)

avatar image
1

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.

alt text

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!


screen-shot-2015-11-06-at-24838-pm.png (83.1 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges