Fixed color of shells shown in preview

This commit is contained in:
enricoturri1966 2023-08-15 08:29:56 +02:00
parent b809996d30
commit d48b01d939

View File

@ -3209,8 +3209,10 @@ void GCodeViewer::render_shells()
return;
shader->start_using();
shader->set_uniform("emission_factor", 0.1f);
const Camera& camera = wxGetApp().plater()->get_camera();
m_shells.volumes.render(GLVolumeCollection::ERenderType::Transparent, true, camera.get_view_matrix(), camera.get_projection_matrix());
shader->set_uniform("emission_factor", 0.0f);
shader->stop_using();
}