mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Render build plate slightly lower than grid to prevent Z fighting
Looks much better. Contributes to issue CURA-4150.
This commit is contained in:
parent
25c5c5a888
commit
18b88065f4
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue