mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 20:26:03 +08:00
Add comments: Why a matrix4x4 and not a sampler1d?
part of CURA-7426
This commit is contained in:
parent
47bf094c52
commit
23cdf871c1
@ -317,6 +317,8 @@ class SimulationView(CuraView):
|
|||||||
self.currentLayerNumChanged.emit()
|
self.currentLayerNumChanged.emit()
|
||||||
|
|
||||||
def getExtruderOpacities(self) -> Matrix:
|
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)
|
return Matrix(self._extruder_opacity)
|
||||||
|
|
||||||
def setShowTravelMoves(self, show):
|
def setShowTravelMoves(self, show):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user