Explorar o código

Update copy function

Garrett Johnson %!s(int64=6) %!d(string=hai) anos
pai
achega
268b14713c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/materials/Material.js

+ 2 - 1
src/materials/Material.js

@@ -381,9 +381,10 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 		this.depthWrite = source.depthWrite;
 
 		this.stencilWrite = source.stencilWrite;
+		this.stencilWriteMask = source.stencilWriteMask;
 		this.stencilFunc = source.stencilFunc;
 		this.stencilRef = source.stencilRef;
-		this.stencilMask = source.stencilMask;
+		this.stencilFuncMask = source.stencilFuncMask;
 		this.stencilFail = source.stencilFail;
 		this.stencilZFail = source.stencilZFail;
 		this.stencilZPass = source.stencilZPass;