add auto-generation of vertex attributes