Shaders are OpenGLES2 ready

Moved the coordinate generation logic back to CPU