Browse Source

Make support render transparently

This way you can still sort of see what is being supported under there. Handy!

However because the layer view is rendered on top of everything else, the Z buffering is a bit messed up. This makes the support always exactly the transparency value in the theme regardless of how many layers of support are drawn. That's nice, because it makes it so that you can always see through the support.

This doesn't work when the colour scheme of layer view is not set to Line Type. There is no differentiation between support and other things then. Support infill seems to not be used at all by layer view, but I've also made the support interface transparent just like the normal support.
Ghostkeeper 5 years ago
parent
commit
d2cab162ed
1 changed files with 3 additions and 3 deletions
  1. 3 3
      resources/themes/cura-light/theme.json

+ 3 - 3
resources/themes/cura-light/theme.json

@@ -377,13 +377,13 @@
         "layerview_inset_0": [255, 0, 0, 255],
         "layerview_inset_x": [0, 255, 0, 255],
         "layerview_skin": [255, 255, 0, 255],
-        "layerview_support": [0, 255, 255, 255],
+        "layerview_support": [0, 255, 255, 127],
         "layerview_skirt": [0, 255, 255, 255],
         "layerview_infill": [255, 127, 0, 255],
-        "layerview_support_infill": [0, 255, 255, 255],
+        "layerview_support_infill": [0, 255, 255, 127],
         "layerview_move_combing": [0, 0, 255, 255],
         "layerview_move_retraction": [128, 127, 255, 255],
-        "layerview_support_interface": [63, 127, 255, 255],
+        "layerview_support_interface": [63, 127, 255, 127],
         "layerview_prime_tower": [0, 255, 255, 255],
         "layerview_nozzle": [181, 166, 66, 50],