Browse Source

GLTFExporter: Added aoMap strength

Fernando Serrano 8 years ago
parent
commit
85374aa091
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/js/exporters/GLTFExporter.js

+ 6 - 0
examples/js/exporters/GLTFExporter.js

@@ -523,6 +523,12 @@ THREE.GLTFExporter.prototype = {
 
 
 				};
 				};
 
 
+				if ( material.aoMapIntensity !== 1.0 ) {
+
+					gltfMaterial.occlusionTexture.strength = material.aoMapIntensity;
+
+				}
+
 			}
 			}
 
 
 			// alphaMode
 			// alphaMode