浏览代码

Added support for alphaMap

WestLangley 7 年之前
父节点
当前提交
847ddac434
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      examples/js/loaders/MTLLoader.js

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

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