|
@@ -41,9 +41,10 @@ function Material() {
|
|
|
this.depthTest = true;
|
|
|
this.depthWrite = true;
|
|
|
|
|
|
+ this.stencilWriteMask = 0xff;
|
|
|
this.stencilFunc = AlwaysStencilFunc;
|
|
|
this.stencilRef = 0;
|
|
|
- this.stencilMask = 0xff;
|
|
|
+ this.stencilFuncMask = 0xff;
|
|
|
this.stencilFail = KeepStencilOp;
|
|
|
this.stencilZFail = KeepStencilOp;
|
|
|
this.stencilZPass = KeepStencilOp;
|
|
@@ -259,9 +260,10 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
data.depthWrite = this.depthWrite;
|
|
|
|
|
|
data.stencilWrite = this.stencilWrite;
|
|
|
+ data.stencilWriteMask = this.stencilWriteMask;
|
|
|
data.stencilFunc = this.stencilFunc;
|
|
|
data.stencilRef = this.stencilRef;
|
|
|
- data.stencilMask = this.stencilMask;
|
|
|
+ data.stencilFuncMask = this.stencilFuncMask;
|
|
|
data.stencilFail = this.stencilFail;
|
|
|
data.stencilZFail = this.stencilZFail;
|
|
|
data.stencilZPass = this.stencilZPass;
|
|
@@ -363,9 +365,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;
|