mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add comments: Why a matrix4x4 and not a sampler1d?
part of CURA-7426
This commit is contained in:
parent
47bf094c52
commit
23cdf871c1
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue