mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 13:17:54 -06:00
Added missing uniform calls for emission_factor
This commit is contained in:
parent
f69bd75464
commit
e1d5d0804b
4 changed files with 13 additions and 4 deletions
|
@ -122,6 +122,7 @@ void Bed3D::Axes::render() const
|
|||
glsafe(::glEnable(GL_DEPTH_TEST));
|
||||
|
||||
shader->start_using();
|
||||
shader->set_uniform("emission_factor", 0.0);
|
||||
|
||||
// x axis
|
||||
std::array<float, 4> color = { 0.75f, 0.0f, 0.0f, 1.0f };
|
||||
|
@ -489,6 +490,7 @@ void Bed3D::render_model() const
|
|||
if (shader != nullptr) {
|
||||
shader->start_using();
|
||||
shader->set_uniform("uniform_color", m_model_color);
|
||||
shader->set_uniform("emission_factor", 0.0);
|
||||
::glPushMatrix();
|
||||
::glTranslated(m_model_offset(0), m_model_offset(1), m_model_offset(2));
|
||||
model->render();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue