Skip to content

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

@sroboubi

Description

@sroboubi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions