Browse Source

Set the right angle for rendering overhang on the outside-volume shader

This prevents us from rendering overhangs with an angle of 90 degrees
Arjen Hiemstra 9 years ago
parent
commit
64977426df
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/SolidView/SolidView.py

+ 1 - 0
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()