state.vertexNormals was initialized with 3 * nVertices, but vertexNormals is actually a std::vector of std::array<3, float> so that its size was three times too large. This resulted in an assertion failure when copying over the vertex normals from the mesh.
This fixes issue #71.
state.vertexNormals was initialized with 3 * nVertices, but vertexNormals is actually a std::vector of std::array<3, float> so that its size was three times too large. This resulted in an assertion failure when copying over the vertex normals from the mesh. This fixes issue #71.