|
@@ -13,13 +13,14 @@ THREE.Material = function () {
|
|
|
this.type = 'Material';
|
|
|
|
|
|
this.fog = true;
|
|
|
+
|
|
|
+ this.blending = THREE.NormalBlending;
|
|
|
this.side = THREE.FrontSide;
|
|
|
+ this.vertexColors = THREE.NoColors; // THREE.NoColors, THREE.VertexColors, THREE.FaceColors
|
|
|
|
|
|
this.opacity = 1;
|
|
|
this.transparent = false;
|
|
|
|
|
|
- this.blending = THREE.NormalBlending;
|
|
|
-
|
|
|
this.blendSrc = THREE.SrcAlphaFactor;
|
|
|
this.blendDst = THREE.OneMinusSrcAlphaFactor;
|
|
|
this.blendEquation = THREE.AddEquation;
|
|
@@ -192,11 +193,10 @@ THREE.Material.prototype = {
|
|
|
if ( this.size !== undefined ) data.size = this.size;
|
|
|
if ( this.sizeAttenuation !== undefined ) data.sizeAttenuation = this.sizeAttenuation;
|
|
|
|
|
|
- if ( this.vertexColors !== undefined && this.vertexColors !== THREE.NoColors ) data.vertexColors = this.vertexColors;
|
|
|
- if ( this.shading !== undefined && this.shading !== THREE.SmoothShading ) data.shading = this.shading;
|
|
|
if ( this.blending !== THREE.NormalBlending ) data.blending = this.blending;
|
|
|
-
|
|
|
+ if ( this.shading !== undefined && this.shading !== THREE.SmoothShading ) data.shading = this.shading;
|
|
|
if ( this.side !== THREE.FrontSide ) data.side = this.side;
|
|
|
+ if ( this.vertexColors !== THREE.NoColors ) data.vertexColors = this.vertexColors;
|
|
|
|
|
|
if ( this.opacity < 1 ) data.opacity = this.opacity;
|
|
|
if ( this.transparent === true ) data.transparent = this.transparent;
|
|
@@ -248,13 +248,14 @@ THREE.Material.prototype = {
|
|
|
this.name = source.name;
|
|
|
|
|
|
this.fog = source.fog;
|
|
|
+
|
|
|
+ this.blending = source.blending;
|
|
|
this.side = source.side;
|
|
|
+ this.vertexColors = source.vertexColors;
|
|
|
|
|
|
this.opacity = source.opacity;
|
|
|
this.transparent = source.transparent;
|
|
|
|
|
|
- this.blending = source.blending;
|
|
|
-
|
|
|
this.blendSrc = source.blendSrc;
|
|
|
this.blendDst = source.blendDst;
|
|
|
this.blendEquation = source.blendEquation;
|