diff --git a/src/materials/Material.js b/src/materials/Material.js index 121471aa1e0b0396a53cd1cb84dd8c57e94ecc84..90447b59d530c50b9d8652c4a6c0d31dd1f88b5f 100644 --- a/src/materials/Material.js +++ b/src/materials/Material.js @@ -176,6 +176,14 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ), if ( this.map && this.map.isTexture ) data.map = this.map.toJSON( meta ).uuid; if ( this.alphaMap && this.alphaMap.isTexture ) data.alphaMap = this.alphaMap.toJSON( meta ).uuid; if ( this.lightMap && this.lightMap.isTexture ) data.lightMap = this.lightMap.toJSON( meta ).uuid; + + if ( this.aoMap && this.aoMap.isTexture ) { + + data.aoMap = this.aoMap.toJSON( meta ).uuid; + data.aoMapIntensity = this.aoMapIntensity; + + } + if ( this.bumpMap && this.bumpMap.isTexture ) { data.bumpMap = this.bumpMap.toJSON( meta ).uuid;