Jelajahi Sumber

Merge pull request #14833 from atul-mourya/patch-4

Missing combine and envMapIntensity property
Mr.doob 7 tahun lalu
induk
melakukan
951f5ecfaf
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/loaders/MaterialLoader.js

+ 2 - 0
src/loaders/MaterialLoader.js

@@ -71,6 +71,7 @@ Object.assign( MaterialLoader.prototype, {
 		if ( json.fog !== undefined ) material.fog = json.fog;
 		if ( json.flatShading !== undefined ) material.flatShading = json.flatShading;
 		if ( json.blending !== undefined ) material.blending = json.blending;
+		if ( json.combine !== undefined ) material.combine = json.combine;
 		if ( json.side !== undefined ) material.side = json.side;
 		if ( json.opacity !== undefined ) material.opacity = json.opacity;
 		if ( json.transparent !== undefined ) material.transparent = json.transparent;
@@ -204,6 +205,7 @@ Object.assign( MaterialLoader.prototype, {
 		if ( json.specularMap !== undefined ) material.specularMap = getTexture( json.specularMap );
 
 		if ( json.envMap !== undefined ) material.envMap = getTexture( json.envMap );
+		if ( json.envMapIntensity !== undefined ) material.envMapIntensity = json.envMapIntensity;
 
 		if ( json.reflectivity !== undefined ) material.reflectivity = json.reflectivity;