Browse Source

Material: clean up.

Mr.doob 9 years ago
parent
commit
7d9203e979
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/materials/Material.js

+ 4 - 4
src/materials/Material.js

@@ -30,11 +30,11 @@ THREE.Material = function () {
 	this.depthTest = true;
 	this.depthWrite = true;
 
+	this.colorWrite = true;
+
 	this.stencilTest = false;
 	this.stencilWrite = false;
 
-	this.colorWrite = true;
-
 	this.precision = null; // override the renderer's default precision for this material
 
 	this.polygonOffset = false;
@@ -260,11 +260,11 @@ THREE.Material.prototype = {
 		this.depthTest = source.depthTest;
 		this.depthWrite = source.depthWrite;
 
+		this.colorWrite = source.colorWrite;
+
 		this.stencilTest = source.stencilTest;
 		this.stencilWrite = source.stencilWrite;
 
-		this.colorWrite = source.colorWrite;
-
 		this.precision = source.precision;
 
 		this.polygonOffset = source.polygonOffset;