浏览代码

Add removal warning

Garrett Johnson 5 年之前
父节点
当前提交
fe0e7957e3
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      src/materials/Material.js

+ 18 - 0
src/materials/Material.js

@@ -50,6 +50,24 @@ function Material() {
 	this.stencilZPass = KeepStencilOp;
 	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.clipIntersection = false;
 	this.clipShadows = false;