brought GLSL code to OpenGL 3.0