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

Camera (?) post FX issue #6427

Closed
darrylthom opened this issue Mar 24, 2023 · 1 comment
Closed

Camera (?) post FX issue #6427

darrylthom opened this issue Mar 24, 2023 · 1 comment

Comments

@darrylthom
Copy link

Version

  • Phaser Version: Beta 21, although this started in the version that added post effects.
  • Operating system: Windows
  • Browser: Chrome

Description

With my game, I have it fill the entire screen. Upon resizing the window, if the screen is large then I set the width to 1088 and height to 512 and scale to fit. With camera post effects, it seems to ignore the width and height I set the game size to.

Example Test Code

Very rough example I will update later if you can't figure out the root issue

this.camera.postFX.addBarrel(0.9);

Upon resizing window and it is considered a large size:

this.game.scale.autoCenter = Phaser.Scale.CENTER_BOTH;
this.game.scale.scaleMode = Phaser.Scale.FIT;
this.game.scale.setGameSize(1088, 512);
this.game.scale.refresh();

This seems to happen when an effect is on the camera.
Camera-PostFX-Bug

Additional Information

I am assuming there is some sort of width or height component to the effects being applied.

@photonstorm
Copy link
Collaborator

This is the same issue as in #6503 - so I'm going to close this one to keep it tidy and refer to that one with the fix.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants