|
@@ -50,24 +50,6 @@ function Material() {
|
|
|
this.stencilZPass = KeepStencilOp;
|
|
this.stencilZPass = KeepStencilOp;
|
|
|
this.stencilWrite = false;
|
|
this.stencilWrite = false;
|
|
|
|
|
|
|
|
- Object.defineProperty( this, 'stencilMask', {
|
|
|
|
|
-
|
|
|
|
|
- set: function ( value ) {
|
|
|
|
|
-
|
|
|
|
|
- console.warn( 'Material.stencilMask has been removed. Use Material.stencilFuncMask instead.' );
|
|
|
|
|
- this.stencilFuncMask = value;
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- get: function () {
|
|
|
|
|
-
|
|
|
|
|
- console.warn( 'Material.stencilMask has been removed. Use Material.stencilFuncMask instead.' );
|
|
|
|
|
- return this.stencilFuncMask;
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
this.clippingPlanes = null;
|
|
this.clippingPlanes = null;
|
|
|
this.clipIntersection = false;
|
|
this.clipIntersection = false;
|
|
|
this.clipShadows = false;
|
|
this.clipShadows = false;
|
|
@@ -277,9 +259,10 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
data.depthWrite = this.depthWrite;
|
|
data.depthWrite = this.depthWrite;
|
|
|
|
|
|
|
|
data.stencilWrite = this.stencilWrite;
|
|
data.stencilWrite = this.stencilWrite;
|
|
|
|
|
+ data.stencilWriteMask = this.stencilWriteMask;
|
|
|
data.stencilFunc = this.stencilFunc;
|
|
data.stencilFunc = this.stencilFunc;
|
|
|
data.stencilRef = this.stencilRef;
|
|
data.stencilRef = this.stencilRef;
|
|
|
- data.stencilMask = this.stencilMask;
|
|
|
|
|
|
|
+ data.stencilFuncMask = this.stencilFuncMask;
|
|
|
data.stencilFail = this.stencilFail;
|
|
data.stencilFail = this.stencilFail;
|
|
|
data.stencilZFail = this.stencilZFail;
|
|
data.stencilZFail = this.stencilZFail;
|
|
|
data.stencilZPass = this.stencilZPass;
|
|
data.stencilZPass = this.stencilZPass;
|