Normal maps not working with some initial image rotation

I don’t know if this is related to Phaser.GameObjects.Light does not consider rotation of Phaser.GameObjects.Image with normal map which I also created a while back… I’m surprised that no one else is hitting these problems, maybe no one uses normal maps?

Anyway, I made a small test application to demonstrate this. You can view the very short code by looking at the page source. Note that you can click the mouse to toggle the light position linking to mouse position.

Using Phaser version 3.70.0 and 3.60.0 you can see the normal map is broken for some initial image rotation:

https://sr-proto.netlify.app/phaserbug4/index.html?version=3.70.0
https://sr-proto.netlify.app/phaserbug4/index.html?version=3.60.0

Using Phaser version 3.55.0 it works as expected:

https://sr-proto.netlify.app/phaserbug4/index.html?version=3.55.0

1 Like

Created issue in github with more info: