Hello, I am trying to find examples of how to implement a simple shader for OpenGL ES 1.x (specifically for the iPhone). I have never worked with shaders before, but I do understand what they are used for. I think that once I am able to load a simple shader in the simulator I will be able to take it from there and do what I need to do. Thanks for the help, ~Eric
+1
A:
My understanding is that the hardware shaders on the iPhone are already being used by the OS for its features in CoreAnimation and OpenGL ES. This means they are not available to you.
Are you looking for a software shader? Try http://unity3d.com/unity/features/shaders
gbrandt
2009-02-12 23:15:41
OpenGL ES 1.1 doesn't support shaders at all as it's specifically designed for a fixed function pipeline.
codelogic
2009-02-12 23:27:12
You're correct that shader functionality isn't exposed by OpenGL on the iPhone, however I don't think there's anything to suggest that the OS is using shaders. Do you have any citation regarding that?
codelogic
2009-02-12 23:30:18
I do not have a citation, just other peoples guesses
gbrandt
2009-02-12 23:44:49
+6
A:
The iPhone currently uses OpenGL ES 1.1 which doesn't support a programmable pipeline. OpenGL ES 2.0 does seem to have them though and also be not compatible with 1.1 .
shoosh
2009-02-12 23:33:00