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

PreFX ColorMatrix cuts off image based on camera #6923

Open
iscrooble opened this issue Oct 14, 2024 · 1 comment
Open

PreFX ColorMatrix cuts off image based on camera #6923

iscrooble opened this issue Oct 14, 2024 · 1 comment

Comments

@iscrooble
Copy link

iscrooble commented Oct 14, 2024

Version

  • Phaser Version: 3.86.0
  • Operating system: Windows 11
  • Browser: Only tested in latest versions of Brave and Edge, but comes up in both

Description

Assigning preFX.addColorMatrix(); to an image cuts it off based on the camera's dimensions and zoom level, leaving a portion of the image at the very center. You don't even have to change the ColorMatrix properties for this to happen. Changing it to postFX fixes the issue.

Example in sandbox.

@samme
Copy link
Contributor

samme commented Oct 14, 2024

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

No branches or pull requests

2 participants