From 64977426dfad8a3c98d687ba9064be445ba8f0ae Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 22 Feb 2016 17:00:39 +0100 Subject: [PATCH] Set the right angle for rendering overhang on the outside-volume shader This prevents us from rendering overhangs with an angle of 90 degrees --- plugins/SolidView/SolidView.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index d9895e1d06..607455c7b3 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -33,6 +33,7 @@ class SolidView(View): if not self._disabled_shader: self._disabled_shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "overhang.shader")) self._disabled_shader.setUniformValue("u_diffuseColor", [0.68, 0.68, 0.68, 1.0]) + self._disabled_shader.setUniformValue("u_overhangAngle", math.cos(math.radians(0))) if Application.getInstance().getMachineManager().getWorkingProfile(): profile = Application.getInstance().getMachineManager().getWorkingProfile()