Browse Source

[glTF] Support aoMapIntensity.

Don McCurdy 8 years ago
parent
commit
391561bde4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/js/loaders/GLTFLoader.js

+ 6 - 0
examples/js/loaders/GLTFLoader.js

@@ -1619,6 +1619,12 @@ THREE.GLTFLoader = ( function () {
 
 				pending.push( parser.assignTexture( materialParams, 'aoMap', material.occlusionTexture.index ) );
 
+				if ( material.occlusionTexture.strength !== undefined ) {
+
+					materialParams.aoMapIntensity = material.occlusionTexture.strength;
+
+				}
+
 			}
 
 			if ( material.emissiveFactor !== undefined ) {