mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Pass the cached normal transformation to the rendere
CURA-7106
This commit is contained in:
parent
ccd9a17be4
commit
440474b1e8
3 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ class XRayPass(RenderPass):
|
|||
batch = RenderBatch(self._shader, type = RenderBatch.RenderType.NoType, backface_cull = False, blend_mode = RenderBatch.BlendMode.Additive)
|
||||
for node in DepthFirstIterator(self._scene.getRoot()):
|
||||
if isinstance(node, CuraSceneNode) and node.getMeshData() and node.isVisible():
|
||||
batch.addItem(node.getWorldTransformation(copy = False), node.getMeshData())
|
||||
batch.addItem(node.getWorldTransformation(copy = False), node.getMeshData(), normal_transformation=node.getCachedNormalMatrix())
|
||||
|
||||
self.bind()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue