File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -893,24 +893,16 @@ class MaterialXNode {
893893
894894 }
895895
896- // Auto-enable transparency when opacity or transmission is non-default
897- const hasNonDefaultOpacity = opacityNode && opacityNode . value !== undefined && opacityNode . value < 1.0 ;
898- const hasOpacityNode = opacityNode !== null ;
899-
900- const hasTransmission = transmissionNode && transmissionNode . value !== undefined && transmissionNode . value > 0 ;
901- const hasTransmissionNode = transmissionNode !== null ;
902-
903- if ( hasNonDefaultOpacity || hasOpacityNode ) {
896+ if ( opacityNode !== null ) {
904897
905898 material . transparent = true ;
906899
907900 }
908901
909- // Set material properties for transmission
910- if ( hasTransmission || hasTransmissionNode ) {
902+ if ( transmissionNode !== null ) {
911903
912- material . transparent = true ;
913904 material . side = DoubleSide ;
905+ material . transparent = true ;
914906
915907 }
916908
You can’t perform that action at this time.
0 commit comments