Fixed calls set_uniform(emission_factor, xx) to use floats

This commit is contained in:
enricoturri1966 2021-08-04 11:58:50 +02:00
parent d0d3c5ad16
commit 66d43b882e
10 changed files with 16 additions and 16 deletions

View file

@ -136,7 +136,7 @@ void GLGizmoCut::on_render()
if (shader == nullptr)
return;
shader->start_using();
shader->set_uniform("emission_factor", 0.1);
shader->set_uniform("emission_factor", 0.1f);
m_grabbers[0].color = GrabberColor;
m_grabbers[0].render(m_hover_id == 0, (float)((box.size().x() + box.size().y() + box.size().z()) / 3.0));