From b8c33156de96592903f06acc619ac921adc251c3 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Fri, 1 Jul 2016 23:39:36 +0900 Subject: [PATCH] Update README. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1b19d8..c6095a6 100644 --- a/README.md +++ b/README.md @@ -130,9 +130,9 @@ for (size_t s = 0; s < shapes.size(); s++) { for (size_t v = 0; v < fv; f++) { // access to vertex tinyobj::index_t idx = shapes[i].mesh.indices[index_offset + v]; - float vx = attrib.positions[3*idx.vertex_index+0]; - float vy = attrib.positions[3*idx.vertex_index+1]; - float vz = attrib.positions[3*idx.vertex_index+2]; + float vx = attrib.vertices[3*idx.vertex_index+0]; + float vy = attrib.vertices[3*idx.vertex_index+1]; + float vz = attrib.vertices[3*idx.vertex_index+2]; float nx = attrib.normals[3*idx.normal_index+0]; float ny = attrib.normals[3*idx.normal_index+1]; float nz = attrib.normals[3*idx.normal_index+2];