From 03a94ca769fd6aafed3e217f31c7e909d5e780e1 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 1 Sep 2022 10:53:36 +0200 Subject: [PATCH] Fixed toolpaths lighting when camera moves above/below printbed --- src/slic3r/GUI/GCodeViewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index d1f380fb7..54b4eb1ec 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -3288,6 +3288,7 @@ void GCodeViewer::render_toolpaths() shader->set_uniform("emission_factor", 0.0f); } else { + shader->set_uniform("emission_factor", 0.15f); #if ENABLE_LEGACY_OPENGL_REMOVAL const int position_id = shader->get_attrib_location("v_position"); const int normal_id = shader->get_attrib_location("v_normal");