Fixed toolpaths lighting when camera moves above/below printbed

This commit is contained in:
enricoturri1966 2022-09-01 10:53:36 +02:00
parent 762e9b5d45
commit 03a94ca769

View File

@ -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");