Inverse kinematics in OpenGL ES 2 for iOS