matching mesh's vertex format with shader's vertex format - closes #390