Преглед на файлове

[glTF] Support aoMapIntensity.

Don McCurdy преди 8 години
родител
ревизия
391561bde4
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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 ) );
 				pending.push( parser.assignTexture( materialParams, 'aoMap', material.occlusionTexture.index ) );
 
 
+				if ( material.occlusionTexture.strength !== undefined ) {
+
+					materialParams.aoMapIntensity = material.occlusionTexture.strength;
+
+				}
+
 			}
 			}
 
 
 			if ( material.emissiveFactor !== undefined ) {
 			if ( material.emissiveFactor !== undefined ) {