Browse Source

Added support for alphaMap

WestLangley 7 years ago
parent
commit
847ddac434
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)