|
@@ -175,6 +175,13 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
if ( this.clearCoat !== undefined ) data.clearCoat = this.clearCoat;
|
|
|
if ( this.clearCoatRoughness !== undefined ) data.clearCoatRoughness = this.clearCoatRoughness;
|
|
|
|
|
|
+ if ( this.clearCoatNormalMap && this.clearCoatNormalMap.isTexture ) {
|
|
|
+
|
|
|
+ data.clearCoatNormalMap = this.clearCoatNormalMap.toJSON( meta ).uuid;
|
|
|
+ data.clearCoatNormalScale = this.clearCoatNormalScale.toArray();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( this.map && this.map.isTexture ) data.map = this.map.toJSON( meta ).uuid;
|
|
|
if ( this.matcap && this.matcap.isTexture ) data.matcap = this.matcap.toJSON( meta ).uuid;
|
|
|
if ( this.alphaMap && this.alphaMap.isTexture ) data.alphaMap = this.alphaMap.toJSON( meta ).uuid;
|