fix: wrong parser behavior to Tr option with parameter invertTrProperty
@@ -464,9 +464,9 @@ THREE.MTLLoader.MaterialCreator.prototype = {
if ( this.options && this.options.invertTrProperty ) n = 1 - n;
- if ( n < 1 ) {
+ if ( n > 0 ) {
- params.opacity = n;
+ params.opacity = 1 - n;
params.transparent = true;
}