change polygon_offset to display selected facets even with the camera in the default position.

This commit is contained in:
Maxime Gimeno 2016-04-29 15:09:09 +02:00
parent cc2e262d69
commit b743c76bb1
1 changed files with 1 additions and 2 deletions

View File

@ -502,7 +502,7 @@ void Scene_polyhedron_selection_item::draw(CGAL::Three::Viewer_interface* viewer
viewer->glGetFloatv(GL_POLYGON_OFFSET_FACTOR, &offset_factor);
viewer->glGetFloatv(GL_POLYGON_OFFSET_UNITS, &offset_units);
glPolygonOffset(-1.f, 1.f);
glPolygonOffset(-0.1f, 0.2f);
vaos[6]->bind();
program = getShaderProgram(PROGRAM_WITH_LIGHT);
attrib_buffers(viewer,PROGRAM_WITH_LIGHT);
@ -536,7 +536,6 @@ void Scene_polyhedron_selection_item::draw(CGAL::Three::Viewer_interface* viewer
draw_points(viewer);
viewer->glGetFloatv( GL_POLYGON_OFFSET_FACTOR, &offset_factor);
viewer->glGetFloatv(GL_POLYGON_OFFSET_UNITS, &offset_units);
glPolygonOffset(-1.f, 1.f);
vaos[0]->bind();
program = getShaderProgram(PROGRAM_WITH_LIGHT);