Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: When forceCanvas is true, mask sprites with sprites doesn't work #10438

Closed
realwugang opened this issue Apr 11, 2024 · 1 comment
Closed
Labels
👍 Not A Bug Verified issue and is working as intended. v7

Comments

@realwugang
Copy link

realwugang commented Apr 11, 2024

Current Behavior

Using pixi.js-legacy forceCavas:true does not take effect
image

Expected Behavior

https://pixijs.com/7.x/playground?exampleId=masks.sprite
image

Steps to Reproduce

https://codesandbox.io/p/sandbox/mask-xzyqxx?file=%2Fsrc%2FApp.js%3A9%2C36

Environment

  "dependencies": {
    "react": "^18.0.0",
    "react-dom": "^18.0.0",
    "react-scripts": "^5.0.0",
    "pixi.js-legacy": "7.4.2",
    "@pixi/react": "7.1.2"
  },

Possible Solution

No response

Additional Information

No response

@GoodBoyDigital
Copy link
Member

heya! sprite masks are not supported in canvas mode im afraid - as they rely on filters behind the scenes.

@GoodBoyDigital GoodBoyDigital added the 👍 Not A Bug Verified issue and is working as intended. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 Not A Bug Verified issue and is working as intended. v7
Projects
None yet
Development

No branches or pull requests

2 participants