浏览代码

Added depth characteristics to Material JSON serializer (#9448)

Tentone 9 年之前
父节点
当前提交
5fe7cb5e7c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/materials/Material.js

+ 4 - 0
src/materials/Material.js

@@ -151,6 +151,10 @@ Material.prototype = {
 		data.uuid = this.uuid;
 		data.type = this.type;
 
+		data.depthFunc = this.depthFunc;
+		data.depthTest = this.depthTest;
+		data.depthWrite = this.depthWrite;
+
 		if ( this.name !== '' ) data.name = this.name;
 
 		if ( (this.color && this.color.isColor) ) data.color = this.color.getHex();