SPE-1354 - Render travel toolpaths using 'flat' shader

This commit is contained in:
enricoturri1966 2023-04-18 08:35:57 +02:00
parent d0f83a58c8
commit 80bbbcf8c3

View File

@ -697,7 +697,9 @@ void GCodeViewer::init()
buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::Line; buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::Line;
buffer.vertices.format = VBuffer::EFormat::Position; buffer.vertices.format = VBuffer::EFormat::Position;
#if ENABLE_GL_CORE_PROFILE #if ENABLE_GL_CORE_PROFILE
buffer.shader = OpenGLManager::get_gl_info().is_core_profile() ? "dashed_thick_lines" : "flat"; // on MAC using the geometry shader of dashed_thick_lines is too slow
buffer.shader = "flat";
// buffer.shader = OpenGLManager::get_gl_info().is_core_profile() ? "dashed_thick_lines" : "flat";
#else #else
buffer.shader = "flat"; buffer.shader = "flat";
#endif // ENABLE_GL_CORE_PROFILE #endif // ENABLE_GL_CORE_PROFILE