Added opengl2 and 3 type shader functions