File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,7 @@ function animate() {
589589 m1 . iridescenceThicknessRange = [ 0 , params . material1 . iridescenceThickness ] ;
590590 m1 . specularColor . set ( params . material1 . specularColor ) . convertSRGBToLinear ( ) ;
591591 m1 . specularIntensity = params . material1 . specularIntensity ;
592+ m1 . transparent = m1 . opacity < 1 ;
592593
593594 const m2 = materials [ 1 ] ;
594595 m2 . color . set ( params . material2 . color ) . convertSRGBToLinear ( ) ;
@@ -610,11 +611,13 @@ function animate() {
610611 m2 . iridescenceThicknessRange = [ 0 , params . material2 . iridescenceThickness ] ;
611612 m2 . specularColor . set ( params . material2 . specularColor ) . convertSRGBToLinear ( ) ;
612613 m2 . specularIntensity = params . material2 . specularIntensity ;
614+ m2 . transparent = m2 . opacity < 1 ;
613615
614616 const m3 = materials [ 2 ] ;
615617 m3 . color . set ( params . material3 . color ) . convertSRGBToLinear ( ) ;
616618 m3 . metalness = params . material3 . metalness ;
617619 m3 . roughness = params . material3 . roughness ;
620+ m3 . transparent = m3 . opacity < 1 ;
618621
619622 ptRenderer . material . materials . updateFrom ( sceneInfo . materials , sceneInfo . textures ) ;
620623 ptRenderer . material . materials . setMatte ( 0 , params . material1 . matte ) ;
You can’t perform that action at this time.
0 commit comments