|
@@ -245,6 +245,14 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
data.depthTest = this.depthTest;
|
|
data.depthTest = this.depthTest;
|
|
data.depthWrite = this.depthWrite;
|
|
data.depthWrite = this.depthWrite;
|
|
|
|
|
|
|
|
+ data.stencilWrite = this.stencilWrite;
|
|
|
|
+ data.stencilFunc = this.stencilFunc;
|
|
|
|
+ data.stencilRef = this.stencilRef;
|
|
|
|
+ data.stencilMask = this.stencilMask;
|
|
|
|
+ data.stencilFail = this.stencilFail;
|
|
|
|
+ data.stencilZFail = this.stencilZFail;
|
|
|
|
+ data.stencilZPass = this.stencilZPass;
|
|
|
|
+
|
|
// rotation (SpriteMaterial)
|
|
// rotation (SpriteMaterial)
|
|
if ( this.rotation !== 0 ) data.rotation = this.rotation;
|
|
if ( this.rotation !== 0 ) data.rotation = this.rotation;
|
|
|
|
|
|
@@ -337,6 +345,14 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
this.depthTest = source.depthTest;
|
|
this.depthTest = source.depthTest;
|
|
this.depthWrite = source.depthWrite;
|
|
this.depthWrite = source.depthWrite;
|
|
|
|
|
|
|
|
+ this.stencilWrite = source.stencilWrite;
|
|
|
|
+ this.stencilFunc = source.stencilFunc;
|
|
|
|
+ this.stencilRef = source.stencilRef;
|
|
|
|
+ this.stencilMask = source.stencilMask;
|
|
|
|
+ this.stencilFail = source.stencilFail;
|
|
|
|
+ this.stencilZFail = source.stencilZFail;
|
|
|
|
+ this.stencilZPass = source.stencilZPass;
|
|
|
|
+
|
|
this.colorWrite = source.colorWrite;
|
|
this.colorWrite = source.colorWrite;
|
|
|
|
|
|
this.precision = source.precision;
|
|
this.precision = source.precision;
|