You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to ask you, how can I use the masking functionality when my WebGL is disabled on my browser. With this part of the code, it works fine, when WebGL is enabled, but when it is disabled, the mask will not work. I heard about CanvasRenderer that it should be used when WebGL is not in use, but have not seen many examples with the use of it.
` const maskObj = new Graphics();
maskObj.beginFill(0xffffff);
maskObj.drawRect(x, y, width, height);
this.mask = maskObj;
this.addChild(maskObj);`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to ask you, how can I use the masking functionality when my WebGL is disabled on my browser. With this part of the code, it works fine, when WebGL is enabled, but when it is disabled, the mask will not work. I heard about CanvasRenderer that it should be used when WebGL is not in use, but have not seen many examples with the use of it.
` const maskObj = new Graphics();
this.mask is the mask of the Container
Beta Was this translation helpful? Give feedback.
All reactions