[LayaAir3]关于3.2的模板测试如何使用问题

对象A  this.mat.stencilWrite = false
        this.mat.stencilTest = Laya.RenderState.STENCILTEST_EQUAL;
        this.mat.stencilOp = new Laya.Vector3(Laya.RenderState.STENCILOP_KEEP, Laya.RenderState.STENCILOP_KEEP, Laya.RenderState.STENCILOP_REPLACE);
        this.mat.stencilRef = 1; rednerqueue 2001
对象B this.mat.stencilWrite = true
        this.mat.stencilTest = Laya.RenderState.STENCILTEST_NEVER;
        this.mat.stencilRef = 1;
rednerqueue 2000
我想让对象A与对象B设置的模板值做测试来控制像素的显示,但是没有效果,具体该怎么用呢
已邀请:

要回复问题请先

商务合作
商务合作