|
@@ -177,6 +177,18 @@ 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.clearcoatMap && this.clearcoatMap.isTexture ) {
|
|
|
+
|
|
|
+ data.clearcoatMap = this.clearcoatMap.toJSON( meta ).uuid;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if ( this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture ) {
|
|
|
+
|
|
|
+ data.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON( meta ).uuid;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture ) {
|
|
|
|
|
|
data.clearcoatNormalMap = this.clearcoatNormalMap.toJSON( meta ).uuid;
|