Просмотр исходного кода

Decreased the value of the u_z_bias, so the plate quad is drawn again.

CURA-4150
Jaime van Kessel 7 лет назад
Родитель
Сommit
904682945a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cura/BuildVolume.py

+ 1 - 1
cura/BuildVolume.py

@@ -174,7 +174,7 @@ class BuildVolume(SceneNode):
             self._plate_shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "color.shader"))
             theme = Application.getInstance().getTheme()
             self._plate_shader.setUniformValue("u_color", Color(*theme.getColor("buildplate").getRgb()))
-            self._plate_shader.setUniformValue("u_z_bias", 0.01)
+            self._plate_shader.setUniformValue("u_z_bias", 0.000001)
 
         renderer.queueNode(self, mode = RenderBatch.RenderMode.Lines)
         renderer.queueNode(self, mesh = self._origin_mesh)