Browse Source

Merge pull request #15634 from 06wj/gltf-export

GLTFExporter: aoMap's texCoord should be 1
Mr.doob 6 years ago
parent
commit
54090fd815
1 changed files with 4 additions and 1 deletions
  1. 4 1
      examples/js/exporters/GLTFExporter.js

+ 4 - 1
examples/js/exporters/GLTFExporter.js

@@ -981,7 +981,10 @@ THREE.GLTFExporter.prototype = {
 			// occlusionTexture
 			if ( material.aoMap ) {
 
-				var occlusionMapDef = { index: processTexture( material.aoMap ) };
+				var occlusionMapDef = { 
+					index: processTexture( material.aoMap ),
+					texCoord: 1
+				};
 
 				if ( material.aoMapIntensity !== 1.0 ) {