• 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 Doolwind · May 24, 2011 at 07:01 AM · shaderiosiphoneemulatoremulation

iOS Shader - Emulator vs Device Inconsistency

I've altered the Mobile Bump Specular shader from the built-in shaders. The shader runs fine in the shader emulator with OpenGL ES 2.0 emulation however it doesn't run on my iPhone 4 (and iPad) when set to OpenGL ES 2.0. The original Mobile Bump Specuar shader works just fine. It appears that the extra texture and texture lookup is causing it to stop working on the device.

There are no errors on the device, it just seems to ignore my shader code and render a vertexlit version of my main texture.

The shader looks like this: (Edit: formatting worked in preview but not in actual question so I've moved it here) http://pastebin.com/C4RyjRUv

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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Support for dynamic shadows on newer iOS devices (supporting OpenGL ES 2.0) 1 Answer

"Queue"="Transparent" not working (on iOS). 1 Answer

how to build impressive shaders for iOS? 1 Answer

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

Testing an iPhone game on an emulator in windows? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges