- Home /
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