Browse Source

Add comments: Why a matrix4x4 and not a sampler1d?

part of CURA-7426
Remco Burema 4 years ago
parent
commit
23cdf871c1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/SimulationView/SimulationView.py

+ 2 - 0
plugins/SimulationView/SimulationView.py

@@ -317,6 +317,8 @@ class SimulationView(CuraView):
             self.currentLayerNumChanged.emit()
 
     def getExtruderOpacities(self) -> Matrix:
+        # NOTE: Extruder opacities are stored in a matrix for (minor) performance reasons (w.r.t. OpenGL/shaders).
+        # If more than 16 extruders are called for, this should be converted to a sampler1d.
         return Matrix(self._extruder_opacity)
 
     def setShowTravelMoves(self, show):