I am pretty proficient in OpenGL and GLSL, although I've currently only written either in C++ for OpenGL / GLUT, or GLMan for GLSL. I have been looking into OpenGL on mobile devices, specifically Android, and had just a few questions about it.
First, I know you have to "program the whole pipeline" in ES 2.0, but I believe that's what I've been doing all along, in GLSL, right? Creating .vert
and .frag
files, and so on?
Secondly, I've been looking at this tutorial, and it seems helpful, but the first thing that hung me up was the vertex / fragment shader code. Is there a way to just specify that as a file? I can't imagine having to write shaders in that horrid string concatenation format.
Next, what is, first, the best reference for looking up things / learning things like precision mediump float
, as I've never seen that kind of thing before, and secondly, does there exist a resource for drawing parallels between the aforementioned declaration, and things I'm more used to, like uniform float x
and varying vec3 y
?
Finally, can anyone suggest a good book for learning OpenGL ES 2.0, taking into consideration that I should have at least some parallel knowledge?