Updated to use 4D vecs to match up with shaders.