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
Mask from render texture and maybe other don't work until it is resized - this is most likely related to #6527 - i am opening new issue as the behavior is different now - but still wrong.
See example code - until you press space, the mask doesn't work - when you press space, it starts working.
Screen resize is there so the it all behaves correctly - it will behave same way if you move resize of the game outside of the event handler or even not resize the game at all, just the scratch effect will be wrong (unmasked part doesn't correspond to where the mouse is)
Version
Description
Mask from render texture and maybe other don't work until it is resized - this is most likely related to #6527 - i am opening new issue as the behavior is different now - but still wrong.
See example code - until you press space, the mask doesn't work - when you press space, it starts working.
Screen resize is there so the it all behaves correctly - it will behave same way if you move resize of the game outside of the event handler or even not resize the game at all, just the scratch effect will be wrong (unmasked part doesn't correspond to where the mouse is)
Example Test Code
https://labs.phaser.io/edit.html?src=src/game%20objects/render%20texture/render%20texture%20as%20a%20mask.js&v=dev
The text was updated successfully, but these errors were encountered: