Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by ina · Dec 30, 2010 at 08:27 AM · androidiphonematerialsspecular

Specular Materials on iPhone or Android?

Is it possible to have material with some amount of visible specularity (reflection, refraction behavior to light, etc) on the iPhone or Android? I've tried all the specular materials I could find, a couple of shader snippets from online, and... no evident specularity.

Comment
Add comment · Show 1
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 headkitgames · Jul 07, 2011 at 11:17 AM 0
Share

i am very interested in any result! it would be really nice if you could share your shader code here. tnnx!

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Jessy · Dec 30, 2010 at 03:57 PM

Sort of. The reason you don't notice any specularity, most likely, is that SeparateSpecular On doesn't do anything. (This is true of iOS devices; I have no experience wit Android.) That means that your specular highlights are being multiplied into your texture, instead of added, which is generally a much more subdued effect. I'm sure this can be overcome with programmable shaders, but pure ShaderLab code will fail you for shiny things. I reported this bug a long time ago, but never heard back. If it's a hardware limitation, fine, but it at least needs to be documented.

Comment
Add comment · Show 4 · 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 ina · Dec 30, 2010 at 06:58 PM 0
Share

hmmm any further references for a workaround to get better specular's?

avatar image Jessy · Dec 30, 2010 at 08:17 PM 0
Share

Only build for later hardware, and don't use "mobile" shaders. I can help you write a 2-pass shader if you ask elsewhere, being very specific, and first trying to make on yourself. The key is to only use specular light in the second pass, and add that in. It will run on anything, but be highly inefficient, considering you'll be rendering the entire thing over again, and blending, just for a little better lighting, on hardware so bad that lighting will probably not look or run great anyway.

avatar image ina · Jan 01, 2011 at 06:21 AM 0
Share

do you have any screenshots of how a 2-pass shader material looks on mobile?

avatar image Jessy · Jan 01, 2011 at 06:44 AM 0
Share

No. It would look the same as in the Editor, though, so just look there on your own screen. There is currently no way to emulate this behavior, other than modifying your shaders to have SeparateSpecular On removed, or changed to SeparateSpecular Off.

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

1 Person is following this question.

avatar image

Related Questions

Memory Managmenet 1 Answer

Optimizing bump map or luminous textures on spheres for mobile 1 Answer

How can you paint materials on terrains? 0 Answers

Android / iPhone deployment.. 2 Answers

Unity games and web comunication 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