Explorar o código

Added depth characteristics to Material JSON serializer (#9448)

Tentone %!s(int64=9) %!d(string=hai) anos
pai
achega
5fe7cb5e7c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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();