Browse Source

Merge pull request #14822 from WestLangley/dev-mtlloader_alphamap

MTLLoader: added support for alphaMap
Mr.doob 7 years ago
parent
commit
84aa0008e3
1 changed files with 9 additions and 0 deletions
  1. 9 0
      examples/js/loaders/MTLLoader.js

+ 9 - 0
examples/js/loaders/MTLLoader.js

@@ -445,6 +445,15 @@ THREE.MTLLoader.MaterialCreator.prototype = {
 
 					break;
 
+				case 'map_d':
+
+					// Alpha map
+
+					setMapForType( "alphaMap", value );
+					params.transparent = true;
+
+					break;
+
 				case 'ns':
 
 					// The specular exponent (defines the focus of the specular highlight)