fix bug in multimodelgeometry loading, initializing w to 0 for all vertices

This commit is contained in:
Emil Axelsson
2016-03-23 11:52:29 +01:00
parent 479644496d
commit 0b3cbaa961

View File

@@ -67,6 +67,7 @@ namespace openspace {
{
Vertex vv;
memcpy(vv.location, v.location, sizeof(GLfloat) * 3);
vv.location[3] = 0.0;
memcpy(vv.tex, v.tex, sizeof(GLfloat) * 2);
memcpy(vv.normal, v.normal, sizeof(GLfloat) * 3);
_vertices.push_back(vv);