Skip to content

Commit b630889

Browse files
authored
Merge pull request #13685 from eastpiger/eastpiger-patch-MTLLoader-equalizeTransparency
fix wrong parser behavior to Tr option with parameter invertTrProperty in MTLLoader.js
2 parents 729ac6d + 6a11dfb commit b630889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/loaders/MTLLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ THREE.MTLLoader.MaterialCreator.prototype = {
464464

465465
if ( this.options && this.options.invertTrProperty ) n = 1 - n;
466466

467-
if ( n < 1 ) {
467+
if ( n > 0 ) {
468468

469-
params.opacity = n;
469+
params.opacity = 1 - n;
470470
params.transparent = true;
471471

472472
}

0 commit comments

Comments
 (0)