|
@@ -249,14 +249,15 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
if ( this.envMap && this.envMap.isTexture ) {
|
|
|
|
|
|
data.envMap = this.envMap.toJSON( meta ).uuid;
|
|
|
- data.reflectivity = this.reflectivity; // Scale behind envMap
|
|
|
- data.refractionRatio = this.refractionRatio;
|
|
|
|
|
|
if ( this.combine !== undefined ) data.combine = this.combine;
|
|
|
- if ( this.envMapIntensity !== undefined ) data.envMapIntensity = this.envMapIntensity;
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( this.envMapIntensity !== undefined ) data.envMapIntensity = this.envMapIntensity;
|
|
|
+ if ( this.reflectivity !== undefined ) data.reflectivity = this.reflectivity;
|
|
|
+ if ( this.refractionRatio !== undefined ) data.refractionRatio = this.refractionRatio;
|
|
|
+
|
|
|
if ( this.gradientMap && this.gradientMap.isTexture ) {
|
|
|
|
|
|
data.gradientMap = this.gradientMap.toJSON( meta ).uuid;
|