From 8a1e0ee9bb0aa39e29b4b0dcaaec6ec29f53c2d8 Mon Sep 17 00:00:00 2001 From: Morton Jonuschat Date: Wed, 23 Apr 2025 21:41:49 -0700 Subject: [PATCH] feat: Reduce size of option marker in G-Code preview --- src/libvgcode/src/Shaders.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libvgcode/src/Shaders.hpp b/src/libvgcode/src/Shaders.hpp index 841b714ebd..d6e903ff8b 100644 --- a/src/libvgcode/src/Shaders.hpp +++ b/src/libvgcode/src/Shaders.hpp @@ -155,7 +155,11 @@ static const char* Options_Vertex_Shader = "const float light_front_diffuse = 0.6 * 0.3;\n" "const float ambient = 0.3;\n" "const float emission = 0.25;\n" +#ifndef _WIN32 +"const float scaling_factor = 0.75;\n" +#else "const float scaling_factor = 1.5;\n" +#endif "uniform mat4 view_matrix;\n" "uniform mat4 projection_matrix;\n" "uniform samplerBuffer position_tex;\n"