diff options
| author | Rémi Verschelde | 2017-06-26 22:47:11 +0200 |
|---|---|---|
| committer | GitHub | 2017-06-26 22:47:11 +0200 |
| commit | f7b77e5b76639dbc2e7a770cc57b64fc02a1e075 (patch) | |
| tree | 697fa698482091279b49847a98b0ba1048e6d995 /scene/resources/tile_set.h | |
| parent | 8ca690bbd707dfe56f0c8bc63bba57837664193e (diff) | |
| parent | 2edb082c7eb85fa1175771ad298f8a8169bc267a (diff) | |
| download | godot-f7b77e5b76639dbc2e7a770cc57b64fc02a1e075.tar.gz godot-f7b77e5b76639dbc2e7a770cc57b64fc02a1e075.tar.zst godot-f7b77e5b76639dbc2e7a770cc57b64fc02a1e075.zip | |
Merge pull request #9318 from bojidar-bg/readd-normal-tilemap
Add normal map to tilemaps and tilesets
Diffstat (limited to 'scene/resources/tile_set.h')
| -rw-r--r-- | scene/resources/tile_set.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/tile_set.h b/scene/resources/tile_set.h index 448444d34..3c4584161 100644 --- a/scene/resources/tile_set.h +++ b/scene/resources/tile_set.h @@ -44,6 +44,7 @@ class TileSet : public Resource { String name; Ref<Texture> texture; + Ref<Texture> normal_map; Vector2 offset; Vector2 shape_offset; Rect2i region; @@ -81,6 +82,9 @@ public: void tile_set_texture(int p_id, const Ref<Texture> &p_texture); Ref<Texture> tile_get_texture(int p_id) const; + void tile_set_normal_map(int p_id, const Ref<Texture> &p_normal_map); + Ref<Texture> tile_get_normal_map(int p_id) const; + void tile_set_texture_offset(int p_id, const Vector2 &p_offset); Vector2 tile_get_texture_offset(int p_id) const; |
