如题,版本是JS3.0 final。
相关测试代码:
var winSize = cc.director.getWinSize();
var bg = new cc.DrawNode();
bg.drawRect(cc.p(0, 0), cc.p(winSize.width, winSize.height), cc.color(255, 255, 255, 255), 1, cc.color(255, 255, 255, 255));
this.addChild(bg);
var shape = new cc.DrawNode();
shape.drawCircle(cc.p(0,0), 50, cc.degreesToRadians(0), 200, false, 10, cc.color(255, 255, 255, 255));
var stencil = shape;
stencil.x = 50;
stencil.y = 50;
var clipper = new cc.ClippingNode();
clipper.anchorX = 0.5;
clipper.anchorY = 0.5;
clipper.x = winSize.width / 2 - 50;
clipper.y = winSize.height / 2 - 50;
clipper.stencil = stencil;
this.addChild(clipper);
var grossini = new cc.Sprite(s_grossini);
grossini.scale = 3;
var content = grossini;
content.x = 50;
content.y = 50;
clipper.addChild(content);
```
在canvas下的效果:
在webGL下的效果:
请问是什么原因?应如何解决呢?
