extract global lighting functions into separate file for using it with other shaders