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

[4.0.0-beta5] Changes to GameObject's origin causes distortions when filters are applied #7030

Open
mikuso opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels

Comments

@mikuso
Copy link

mikuso commented Feb 5, 2025

Version

  • Phaser Version: 4.0.0-beta5
  • Operating system: Win 11
  • Browser: Chrome

Description

When a GameObject has a filter applied (internal or external), mutating the origin causes the size and offset of the texture to go wildly wrong.

Example Test Code

https://phaser.io/sandbox/9nCjGudu

In this example, the scene initially shows a tweening of the origin of a TileSprite (repeating, between 0 <-> 0.5.

When you click on the canvas, a filter is added/removed to/from the TileSprite.

When the filter is applied, you can clearly see the issue. The texture is offset in a weird way, and the total visible size of the TileSprite shrinks as the origin approaches 0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants