Modified rendering code for both vertices and the grid to ensure that attribute layouts don't conflict between shaders.