File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
meshroom/nodes/blender/scripts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -199,15 +199,15 @@ def setupWireframeShading(mesh, color):
199199 # Emission node
200200 nodeEmission = material .node_tree .nodes .new (type = 'ShaderNodeEmission' )
201201 nodeEmission .inputs ['Color' ].default_value = color
202- # Transparent BSDF node
203- nodeTransparent = material .node_tree .nodes .new (type = 'ShaderNodeBsdfTransparent ' )
202+ # Holdout node
203+ nodeHoldout = material .node_tree .nodes .new (type = 'ShaderNodeHoldout ' )
204204 # Max Shader node
205205 nodeMix = material .node_tree .nodes .new (type = 'ShaderNodeMixShader' )
206206 # Retrieve ouput node
207207 nodeOutput = material .node_tree .nodes ['Material Output' ]
208208 # Connect nodes
209209 material .node_tree .links .new (nodeWireframe .outputs ['Fac' ], nodeMix .inputs ['Fac' ])
210- material .node_tree .links .new (nodeTransparent .outputs ['BSDF ' ], nodeMix .inputs [1 ])
210+ material .node_tree .links .new (nodeHoldout .outputs ['Holdout ' ], nodeMix .inputs [1 ])
211211 material .node_tree .links .new (nodeEmission .outputs ['Emission' ], nodeMix .inputs [2 ])
212212 material .node_tree .links .new (nodeMix .outputs ['Shader' ], nodeOutput .inputs ['Surface' ])
213213 # Apply material to mesh
You can’t perform that action at this time.
0 commit comments