mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 04:09:04 +08:00
Fixed color of shells shown in preview
This commit is contained in:
parent
b809996d30
commit
d48b01d939
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user