瀏覽代碼

Add missing combine and envMapIntensity serialization

Takahiro 7 年之前
父節點
當前提交
02eaa5db5a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/materials/Material.js

+ 3 - 0
src/materials/Material.js

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