Is there a way to add normal maps to TileMap in Godot 4.3?

I’m working on a small platform game where levels are built using TileMap.

And I wonder there is an option to add normal maps?

In the documentation, I have not found anywhere whether and how to do it. I’ve only seen options for regular sprite

2 Likes

for lighting you use canvas textures instead of image texture. a canvas texture allows setting diffuse, normal map and roughness to use with 2D lights. although I don’t know if it works with tile maps.

it’s in the documentation

Have you discovered a way to add a normal map to the Tile Map Layer node? I have checked both of the other comment’s links and although it certainly goes over how to use a Canvas Texture, I don’t see a way to use a Canvas Texture in the Tile Map Layer.

I also tried the solution here: https://www.reddit.com/r/godot/comments/13edbd9/how_can_i_add_a_normal_map_to_a_tilemap_texture/ and it doesn’t seem like I can create a new Atlas in the way the comment suggested. I also can’t seem to create a Canvas Texture on it’s own outside of a Sprite2D.

There also doesn’t seem to be a way to change the lighting mode of an atlas within the TileSet editor or within the TileMapLayer. For example, I can’t seem to drag in both a diffuse and a normal texture into a TileSetLayer and use two TileSetLayers in the scene with one designated as a normal map and one designated as a diffuse map.

Still searching for some alternate solution outside of making a Sprite2D for every single texture.

Just wanted to say that I found the solution here:
https://www.reddit.com/r/godot/comments/13edbd9/comment/jjpslqb/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

  1. Create a TileMapLayer node
  2. In the inspector, press Tileset > New Tileset
  3. In the ‘TileSet’ tab at the bottom of the screen, import your diffuse map atlas
  4. In the Atlas properties in the TileSet tab, open the Texture dropdown and press ‘New CanvasTexture’
  5. Click the newly created ‘CanvasTexture’ to open its properties
  6. Select your diffuse, normal, and/or specular maps

I hope that helps!

1 Like