Browse Source

add colorWrite to material copy method

Mugen87 9 years ago
parent
commit
4847d475f7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/materials/Material.js

+ 2 - 0
src/materials/Material.js

@@ -257,6 +257,8 @@ THREE.Material.prototype = {
 		this.depthTest = source.depthTest;
 		this.depthTest = source.depthTest;
 		this.depthWrite = source.depthWrite;
 		this.depthWrite = source.depthWrite;
 
 
+		this.colorWrite = source.colorWrite;
+
 		this.precision = source.precision;
 		this.precision = source.precision;
 
 
 		this.polygonOffset = source.polygonOffset;
 		this.polygonOffset = source.polygonOffset;