Skip to content

Commit

Permalink
Merge pull request #14833 from atul-mourya/patch-4
Browse files Browse the repository at this point in the history
Missing combine and envMapIntensity property
  • Loading branch information
mrdoob committed Sep 5, 2018
2 parents 708b218 + 56c708b commit 951f5ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/loaders/MaterialLoader.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 951f5ec

Please sign in to comment.