Skip to content

Commit 5369f83

Browse files
authored
Add equalizeTransparency to material options
1 parent d381e6c commit 5369f83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/js/loaders/MTLLoader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,10 @@ THREE.MTLLoader.MaterialCreator.prototype = {
464464

465465
if ( n > 0 ) {
466466

467-
params.opacity = 1 - n;
467+
if ( this.options && this.options.equalizeTransparency )
468+
params.opacity = value;
469+
else
470+
params.opacity = 1 - value;
468471
params.transparent = true;
469472

470473
}

0 commit comments

Comments
 (0)