Преглед на файлове

add colorWrite to material copy method

Mugen87 преди 9 години
родител
ревизия
4847d475f7
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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.depthWrite = source.depthWrite;
 
+		this.colorWrite = source.colorWrite;
+
 		this.precision = source.precision;
 
 		this.polygonOffset = source.polygonOffset;