|
@@ -68,7 +68,7 @@ Object.assign( MaterialLoader.prototype, {
|
|
|
if ( json.fragmentShader !== undefined ) material.fragmentShader = json.fragmentShader;
|
|
|
if ( json.vertexColors !== undefined ) material.vertexColors = json.vertexColors;
|
|
|
if ( json.fog !== undefined ) material.fog = json.fog;
|
|
|
- if ( json.shading !== undefined ) material.shading = json.shading;
|
|
|
+ if ( json.flatShading !== undefined ) material.flatShading = json.flatShading;
|
|
|
if ( json.blending !== undefined ) material.blending = json.blending;
|
|
|
if ( json.side !== undefined ) material.side = json.side;
|
|
|
if ( json.opacity !== undefined ) material.opacity = json.opacity;
|
|
@@ -84,6 +84,10 @@ Object.assign( MaterialLoader.prototype, {
|
|
|
if ( json.skinning !== undefined ) material.skinning = json.skinning;
|
|
|
if ( json.morphTargets !== undefined ) material.morphTargets = json.morphTargets;
|
|
|
|
|
|
+ // Deprecated
|
|
|
+
|
|
|
+ if ( json.shading !== undefined ) material.shading = json.shading;
|
|
|
+
|
|
|
// for PointsMaterial
|
|
|
|
|
|
if ( json.size !== undefined ) material.size = json.size;
|