Color fix

- The nef item has random facets with their normal reversed. In CGAL-4.6, it
  was dealt with by forcing "draw two side" to true. So it is what I did.
This commit is contained in:
Maxime Gimeno 2015-10-06 13:39:20 +02:00
parent dc2955c16f
commit 56b31b7971
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ void Scene_nef_polyhedron_item::draw(Viewer_interface* viewer) const
program->setAttributeValue("colors", this->color().lighter(120));
else
program->setAttributeValue("colors", this->color());
program->setUniformValue("is_two_side", 1);
viewer->glDrawArrays(GL_TRIANGLES, 0, static_cast<GLsizei>(nb_facets/3));
vaos[0]->release();
program->release();