Inverted normal map for flipped tile in Chunk tilemap

Hi,

I’m using 2D tilemaps with normal maps and in chunk mode. I’ve noticed that when I flip a tile, the normal map loads incorrectly (it looks like the green channel is inverted). The error doesn’t occur if the tilemap renderer is in individual mode.

Does anyone know why this is happening? I could create a flipped version of my tiles, but I have quite a few, and that would be a lot of extra work.

Hi, would it be possible to file a bug report with your project with the Tile, the textures used and any shaders used by the Renderer and post the case number here? We will investigate this. Thank you!

@ChuanXin I’ve just created a sample project where you can see the error.

I’ve noticed differences depending on whether the sprites are added to an atlas using TexturePacker (as they are in my original project) or added individually. In the first case, the normals appear to be vertically inverted, but they look correct when the light is moved horizontally. In the second case, they appear to be inverted along both axes.

Both cases are shown in the project.

Here you have the compressed project, let me know if something else is needed: https://drive.google.com/file/d/1tR8r9_nnLb6dpUfMOO4fOkIq3GwqlZGE/view?usp=sharing

Thanks for the help :slight_smile: .

Thanks! We will check this out!

Sorry for the late reply! This is a bug and we have a tentative fix for this issue. I will update this with the fixed versions of the Unity Editor. Thanks!

@ChuanXin Thanks for taking the time to look into this and get back to me! I’ll wait for that version then :).

Still happening to me a month later, in version 6.4.11f1.

Hi @ChuanXin, any news about this?

Sorry for the long delay, we have a fix for this and are trying to land this across the different versions of the Unity Editor.

Is there a particular version of the Unity Editor we should prioritise? Unfortunately, the project version of the reproduction (2022.3) is EOL, so we are unable to fix that line of the Unity Editor. Thanks!

I will migrate my project to 6.3 LTS ChuanXin, so that one will be good for me. Thanks!

Hi, this should be fixed in Unity 6000.3.20f1. Please let us know if that works for you, thanks!

OK, @ChuanXin, I’m waiting for that version to be released; I’ll give it a go as soon as it’s out. Thanks!

@ChuanXin I can confirm this has been fixed in 6000.3.20f1. Thanks!