mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
parent
a168eab140
commit
64977426df
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue