mirror of https://github.com/CGAL/cgal
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:
parent
dc2955c16f
commit
56b31b7971
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue