Add comments: Why a matrix4x4 and not a sampler1d?

part of CURA-7426
This commit is contained in:
Remco Burema 2020-05-07 18:55:55 +02:00
parent 47bf094c52
commit 23cdf871c1
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

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