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 yosh · Feb 15, 2010 at 02:01 PM · shaderiphone

Unity iPhone: difference between shader and iPhone-shader?

Hi,

im working on a unity-iphone project right now and id like to know wheres exactly the differences between the standard shader and the special iphone-shader? Should i use only the iphone-shader oder whats going on with the standard shader? It would be great to have the same shader-manual for the iphone-sahder like it consists already for the non-iphone-version.

Thanks for your help, yosh

Comment
Add comment
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

1 Reply

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

Answer by Jessy · Feb 15, 2010 at 11:34 PM

The most important difference is that CG/GLSL is not supported in Unity iPhone. (The original GPU is fixed function only.) You can find more information here:

file:///Applications/Unity%20iPhone/Unity%20iPhone.app/Contents/Documentation/Documentation/Manual/iphone-unsupported.html

Knowing that, nearly everything found in the ShaderLab Reference will work on the iPhone. I agree with you that the differences need to be documented, however. Here are a couple things, that I know of, that aren't listed as not working, but still don't work:

  • Cubemaps
  • SeparateSpecular command
  • Three-argument texture combiner functions (except Lerp)
  • GrabPass

Every shader included with Unity will work on the iPhone, but that's only because of Fallbacks. Generally, if you don't want to write your own shaders, it's a good idea to use the ones in the iPhone standard assets, because they are designed to run a little faster than the non-iPhone stuff.

Edit: Re-reading your question, I'm thinking perhaps you mean that the iPhone shaders should have documentation such as is found in the Built-in Shader Guide. Although I agree with that, the shaders that can run on the iPhone are much less complex than most of the other shaders, so it's to every Unity iPhone developer's benefit to learn the simple ShaderLab language, and write their own very fast shaders. As it is, a couple of us have begun adding this kind of extremely fast, simple shader, to the wiki. Glancing over them would probably be a good way to help yourself learn, if you're interested:

http://www.unifycommunity.com/wiki/index.php?title=Shader_Archive#iPhone

Comment
Add comment · Show 1 · 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 yosh · Feb 16, 2010 at 09:05 AM 0
Share

Thanks for your information, jessy. It helped me a lot and now i will have a look at the shader guide. thanks.

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

No one has followed this question yet.

Related Questions

Is there a way to visually show the order in which geometry was rendered in your scene. 1 Answer

VertexLit Hilight Shader - Flicker on iOS Problem 1 Answer

Glow and Bloom Effects on iPhone 3 Answers

Animated television static effect, techniques? iPhone shader 2 Answers

Displaying background layers effectively on iPhone 0 Answers


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