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.
This commit is contained in:
Ghostkeeper 2020-03-10 01:06:11 +01:00
parent 7b0964abef
commit d2cab162ed
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -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],