# Troubleshooting normal maps

## Import settings

The texture has to be imported without the `isGamma` flag. Import **over** an already-existing normal map to rule out this as a source of error. See [this conversation on Discord](https://discord.com/channels/717692382849663036/1039320529255026829/1041478803584733276) for more detail.

## UV scaling

Cyberpunk actually considers the UV map's scaling when calculating the weight of the normal maps:

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-4fdb1ee74495c42213ac58380ee31a9d27176555%2Fnormal_maps_UV_scaling.png?alt=media" alt=""><figcaption><p>the problem</p></figcaption></figure>

Since the neck part is scaled much larger than the chest, this will make the parts of the mesh visibly distinct.

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-6d5b5cc7d985ec478937327462d5b5230b4b0d73%2Fnormal_maps_UV_scaling_2.png?alt=media" alt=""><figcaption><p>The solution</p></figcaption></figure>

### Inverted shading, especially in the up/down direction

If you have a normal map you've already baked and want to fix, simply invert the <mark style="color:green;">green</mark> layer in Photoshop/[photopea](https://www.photopea.com/).

Read more about this on [normal-maps-in-cyberpunk](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/materials/textures/normal-maps-in-cyberpunk "mention").
