Просмотр исходного кода

add colorWrite to material copy method

Mugen87 9 лет назад
Родитель
Сommit
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;