Printbed model rendered with 50% transparency

This commit is contained in:
Enrico Turri 2019-02-07 09:59:57 +01:00
parent 21a7fa6af2
commit c038bc2933

View file

@ -2003,7 +2003,7 @@ bool GLBed::on_init_from_file(const std::string& filename, bool useVBOs)
else
m_volume.indexed_vertex_array.load_mesh_flat_shading(mesh);
float color[4] = { 0.235f, 0.235f, 0.235f, 1.0f };
float color[4] = { 0.235f, 0.235f, 0.235f, 0.5f };
set_color(color, 4);
m_volume.bounding_box = m_volume.indexed_vertex_array.bounding_box();