Modified vertex shader, was failing on OSX with attribute syntax error.