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

Phaser.GameObjects.Light does not consider rotation of Phaser.GameObjects.Image with normal map #5660

Closed
sroboubi opened this issue Apr 16, 2021 · 2 comments

Comments

@sroboubi
Copy link

Version

3.52 (also tested with 3.54)

Description

This appears to be a duplicate of #4053 and #3870 but those were fixed/closed.
The issue is that normal map information from images (Phaser.GameObjects.Image) that are rotated are not correctly accounted for when using 2d point lights (Phaser.GameObjects.Light).
The example below demonstrates exactly this using a basic image and a matter.image.

Example Test Code

https://sr-proto.netlify.app/phaserbugs/normal-rotation.html

controls:

  • right click to attach light to mouse
  • Press A or D to rotate image left or right
@photonstorm
Copy link
Collaborator

This issue has been mentioned on Phaser. There might be relevant details there:

https://phaser.discourse.group/t/phaser-gameobjects-light-does-not-consider-rotation-of-phaser-gameobjects-image-with-normal-map/9394/1

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

No branches or pull requests

2 participants