diff options
author | Hop311 <hop3114@gmail.com> | 2023-05-01 19:19:01 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-05-01 19:19:01 +0200 |
commit | e0874b0d92e1320108b8c2417e81f958420119ac (patch) | |
tree | 81421796bbd3e7df4a92f3853a7fae3f40c62bdc /game/src/GameSession/MapView.gd | |
parent | b1e985e0774598b3add22069be50f891e981fd79 (diff) |
Better province highlight on selection/hover.
Diffstat (limited to 'game/src/GameSession/MapView.gd')
-rw-r--r-- | game/src/GameSession/MapView.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/GameSession/MapView.gd b/game/src/GameSession/MapView.gd index e2c8519..dc62594 100644 --- a/game/src/GameSession/MapView.gd +++ b/game/src/GameSession/MapView.gd @@ -70,9 +70,9 @@ func _ready(): _map_mesh = _map_mesh_instance.mesh # Set map mesh size and get bounds - _map_mesh.aspect_ratio = GameSingleton.get_aspect_ratio() + const pixels_per_terrain_tile : float = 64.0 _map_shader_material.set_shader_parameter(Events.ShaderManager.param_terrain_tile_factor, - float(GameSingleton.get_height()) / 128.0) + float(GameSingleton.get_height()) / pixels_per_terrain_tile) var map_mesh_aabb := _map_mesh.get_core_aabb() * _map_mesh_instance.transform _map_mesh_corner = Vector2( min(map_mesh_aabb.position.x, map_mesh_aabb.end.x), |