Using correct w-component for multimodelgeometry rendering

This commit is contained in:
Alexander Bock
2016-05-08 16:19:34 +02:00
parent 33ecbc8012
commit bee9309f98

View File

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