Vertex attributes v3

Cleaned up version of https://github.com/DrMcCoy/xoreos/pull/25