CutGizmo: Set "emission_factor" for shader, when rendering GLModels

to avoid flickering of the connectors on change camera view
This commit is contained in:
YuSanka 2023-08-15 14:37:00 +02:00
parent 6671413023
commit a386d092b7

View File

@ -948,6 +948,7 @@ void GLGizmoCut3D::render_model(GLModel& model, const ColorRGBA& color, Transfor
shader->start_using();
shader->set_uniform("view_model_matrix", view_model_matrix);
shader->set_uniform("emission_factor", 0.2f);
shader->set_uniform("projection_matrix", wxGetApp().plater()->get_camera().get_projection_matrix());
model.set_color(color);