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

This prevents us from rendering overhangs with an angle of 90 degrees
This commit is contained in:
Arjen Hiemstra 2016-02-22 17:00:39 +01:00
parent a168eab140
commit 64977426df

View file

@ -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()