Fixed toolpaths lighting when camera moves above/below printbed
This commit is contained in:
parent
762e9b5d45
commit
03a94ca769
1 changed files with 1 additions and 0 deletions
|
@ -3288,6 +3288,7 @@ void GCodeViewer::render_toolpaths()
|
||||||
shader->set_uniform("emission_factor", 0.0f);
|
shader->set_uniform("emission_factor", 0.0f);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
shader->set_uniform("emission_factor", 0.15f);
|
||||||
#if ENABLE_LEGACY_OPENGL_REMOVAL
|
#if ENABLE_LEGACY_OPENGL_REMOVAL
|
||||||
const int position_id = shader->get_attrib_location("v_position");
|
const int position_id = shader->get_attrib_location("v_position");
|
||||||
const int normal_id = shader->get_attrib_location("v_normal");
|
const int normal_id = shader->get_attrib_location("v_normal");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue