Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2017-08-22 17:40:11 +0300
committerGhostkeeper <rubend@tutanota.com>2017-08-22 17:40:11 +0300
commit18b88065f45f8a871763a635808237729c66bf8e (patch)
tree0b95ff92275938b5b34b59926497f0fb6c5dff5d /cura/BuildVolume.py
parent25c5c5a88836f30ceb71c1d333ba76f939aafe2e (diff)
Render build plate slightly lower than grid to prevent Z fighting
Looks much better. Contributes to issue CURA-4150.
Diffstat (limited to 'cura/BuildVolume.py')
-rwxr-xr-xcura/BuildVolume.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py
index 2757a37609..7514f15c14 100755
--- a/cura/BuildVolume.py
+++ b/cura/BuildVolume.py
@@ -174,6 +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)
renderer.queueNode(self, mode = RenderBatch.RenderMode.Lines)
renderer.queueNode(self, mesh = self._origin_mesh)