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 headkitgames · Jul 03, 2011 at 08:37 PM · shaderiosiphone

how to build impressive shaders for iOS?

hi there!

I am new to shader programming. I want to create a black, reflective material which glows white on the edges, like this cube:

alt text

for iPhone. How could I do that?

thnx!

Comment
Add comment · Show 4
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 testure · Jul 03, 2011 at 09:42 PM 0
Share

your image doesn't show up for me.. but i have to ask- do you have experience writing shaders?

If not, then the first step is always going to be to start at the bottom and learn how to do it. There are a few tutorials in the unity docs. I would start there and see where it takes you.

avatar image Peter G · Jul 03, 2011 at 11:41 PM 2
Share

All's that is is an emissive reflective shader. Just add an emissive component (1 $$anonymous$$us the dot product of the normal and the view direction) to the reflective shader. Then there are one or two other quick changes to make for optimizations in the shader directive.

avatar image headkitgames · Jul 07, 2011 at 11:19 AM 0
Share

@testure yes, don't know why the image is gone now. sorry. I will try to bring it back (i have to do a search on the internet again...). @Peter sound briliant but I don't get it...

avatar image headkitgames · Jul 09, 2011 at 07:33 PM 1
Share

re-inserted the image

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by almo · Jul 07, 2011 at 01:11 PM

1) Write an awesome shader. 2) Adapt it to the iPhone.

I'm serious. The first step is to learn to write awesome shaders, then learn how to work with shaders on the iPhone.

Comment
Add comment · Show 2 · 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 headkitgames · Jul 07, 2011 at 01:29 PM 0
Share

didn't I read somewhere that ShaderLabs-Shaders doesn't work on the iPhone? so learning ShaderLabs syntax doesn't take me higher... :-(

avatar image almo · Jul 07, 2011 at 01:34 PM 0
Share

I don't mean the syntax per se. I mean just how to design and write shaders in general. You have to know how they work before dealing with the iPhone's limitations.

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

iOS Shader - Emulator vs Device Inconsistency 0 Answers

Problem with texture blending and vertex color shader for iOS 1 Answer

Why does this shader show up black on iOS? 1 Answer

Iphone Shader Reflection Map 0 Answers

What shader blending modes don't work on iOS? 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