Using Vector4 instead of Vector3D
Again with the minor formatting
Improved glsl global variable extraction