Simplified code using GL_explicit_uniform_location