|
@@ -17,7 +17,6 @@ function Material() {
|
|
|
|
|
|
this.blending = NormalBlending;
|
|
|
this.side = FrontSide;
|
|
|
- this.flatShading = false;
|
|
|
this.vertexColors = false;
|
|
|
|
|
|
this.opacity = 1;
|
|
@@ -265,7 +264,6 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
if ( this.sizeAttenuation !== undefined ) data.sizeAttenuation = this.sizeAttenuation;
|
|
|
|
|
|
if ( this.blending !== NormalBlending ) data.blending = this.blending;
|
|
|
- if ( this.flatShading === true ) data.flatShading = this.flatShading;
|
|
|
if ( this.side !== FrontSide ) data.side = this.side;
|
|
|
if ( this.vertexColors ) data.vertexColors = true;
|
|
|
|
|
@@ -311,6 +309,8 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
if ( this.morphNormals === true ) data.morphNormals = true;
|
|
|
if ( this.skinning === true ) data.skinning = true;
|
|
|
|
|
|
+ if ( this.flatShading === true ) data.flatShading = this.flatShading;
|
|
|
+
|
|
|
if ( this.visible === false ) data.visible = false;
|
|
|
|
|
|
if ( this.toneMapped === false ) data.toneMapped = false;
|
|
@@ -363,7 +363,6 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
|
|
|
this.blending = source.blending;
|
|
|
this.side = source.side;
|
|
|
- this.flatShading = source.flatShading;
|
|
|
this.vertexColors = source.vertexColors;
|
|
|
|
|
|
this.opacity = source.opacity;
|