2
0
Эх сурвалжийг харах

Added support for alphaMap

WestLangley 7 жил өмнө
parent
commit
847ddac434

+ 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)