1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-20 09:34:26 +00:00

Temporary disable transparent bed and higher resolution bed textures

This commit is contained in:
Enrico Turri
2019-02-08 16:45:03 +01:00
parent 8b2a8822d2
commit 7662fa9a5b
2 changed files with 5 additions and 1 deletions
+1 -1
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, 0.5f };
float color[4] = { 0.235f, 0.235f, 0.235f, 1.0f };
set_color(color, 4);
m_volume.bounding_box = m_volume.indexed_vertex_array.bounding_box();
+4
View File
@@ -599,6 +599,10 @@ void GLCanvas3D::Bed::_render_prusa(const std::string &key, float theta) const
// use higher resolution images if graphic card allows
GLint max_tex_size;
::glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_tex_size);
// temporary set to lowest resolution
max_tex_size = 2048;
if (max_tex_size >= 8192)
tex_path += "_8192";
else if (max_tex_size >= 4096)