浏览代码

Update MaskPass.js

Garrett Johnson 6 年之前
父节点
当前提交
ccf62e42ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/postprocessing/MaskPass.js

+ 1 - 1
examples/jsm/postprocessing/MaskPass.js

@@ -80,7 +80,7 @@ MaskPass.prototype = Object.assign( Object.create( Pass.prototype ), {
 		state.buffers.stencil.setLocked( false );
 		state.buffers.stencil.setLocked( false );
 		state.buffers.stencil.setFunc( context.EQUAL, 1, 0xffffffff ); // draw if == 1
 		state.buffers.stencil.setFunc( context.EQUAL, 1, 0xffffffff ); // draw if == 1
 		state.buffers.stencil.setOp( context.KEEP, context.KEEP, context.KEEP );
 		state.buffers.stencil.setOp( context.KEEP, context.KEEP, context.KEEP );
-		state.buffers.depth.setLocked( true );
+		state.buffers.stencil.setLocked( true );
 
 
 	}
 	}