Просмотр исходного кода

GLTFExporter: Added aoMap strength

Fernando Serrano 8 лет назад
Родитель
Сommit
85374aa091
1 измененных файлов с 6 добавлено и 0 удалено
  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

粤ICP备19079148号