diff --git a/src/render/shaders/column_even_hex.wgsl b/src/render/shaders/column_even_hex.wgsl index 8d27ba96..916e1658 100644 --- a/src/render/shaders/column_even_hex.wgsl +++ b/src/render/shaders/column_even_hex.wgsl @@ -19,7 +19,7 @@ fn get_mesh(v_index: u32, vertex_position: vec3) -> Output { vec2(position.x, position.y), vec2(position.x, position.y + tilemap_data.tile_size.y), vec2(position.x + tilemap_data.tile_size.x, position.y + tilemap_data.tile_size.y), - vec2(position.x + tilemap_data.tile_size.y, position.y) + vec2(position.x + tilemap_data.tile_size.x, position.y) ); position = positions[v_index % 4u]; diff --git a/src/render/shaders/column_hex.wgsl b/src/render/shaders/column_hex.wgsl index 03ad7a33..e57f6d61 100644 --- a/src/render/shaders/column_hex.wgsl +++ b/src/render/shaders/column_hex.wgsl @@ -16,7 +16,7 @@ fn get_mesh(v_index: u32, vertex_position: vec3) -> Output { vec2(position.x, position.y), vec2(position.x, position.y + tilemap_data.tile_size.y), vec2(position.x + tilemap_data.tile_size.x, position.y + tilemap_data.tile_size.y), - vec2(position.x + tilemap_data.tile_size.y, position.y) + vec2(position.x + tilemap_data.tile_size.x, position.y) ); position = positions[v_index % 4u]; diff --git a/src/render/shaders/column_odd_hex.wgsl b/src/render/shaders/column_odd_hex.wgsl index 4309edf6..25ef570e 100644 --- a/src/render/shaders/column_odd_hex.wgsl +++ b/src/render/shaders/column_odd_hex.wgsl @@ -19,7 +19,7 @@ fn get_mesh(v_index: u32, vertex_position: vec3) -> Output { vec2(position.x, position.y), vec2(position.x, position.y + tilemap_data.tile_size.y), vec2(position.x + tilemap_data.tile_size.x, position.y + tilemap_data.tile_size.y), - vec2(position.x + tilemap_data.tile_size.y, position.y) + vec2(position.x + tilemap_data.tile_size.x, position.y) ); position = positions[v_index % 4u]; diff --git a/src/render/shaders/row_even_hex.wgsl b/src/render/shaders/row_even_hex.wgsl index 8e62b4ef..96a8e12e 100644 --- a/src/render/shaders/row_even_hex.wgsl +++ b/src/render/shaders/row_even_hex.wgsl @@ -19,7 +19,7 @@ fn get_mesh(v_index: u32, vertex_position: vec3) -> Output { vec2(position.x, position.y), vec2(position.x, position.y + tilemap_data.tile_size.y), vec2(position.x + tilemap_data.tile_size.x, position.y + tilemap_data.tile_size.y), - vec2(position.x + tilemap_data.tile_size.y, position.y) + vec2(position.x + tilemap_data.tile_size.x, position.y) ); position = positions[v_index % 4u]; diff --git a/src/render/shaders/row_hex.wgsl b/src/render/shaders/row_hex.wgsl index 4378d27f..25fb969e 100644 --- a/src/render/shaders/row_hex.wgsl +++ b/src/render/shaders/row_hex.wgsl @@ -16,7 +16,7 @@ fn get_mesh(v_index: u32, vertex_position: vec3) -> Output { vec2(position.x, position.y), vec2(position.x, position.y + tilemap_data.tile_size.y), vec2(position.x + tilemap_data.tile_size.x, position.y + tilemap_data.tile_size.y), - vec2(position.x + tilemap_data.tile_size.y, position.y) + vec2(position.x + tilemap_data.tile_size.x, position.y) ); position = positions[v_index % 4u]; diff --git a/src/render/shaders/row_odd_hex.wgsl b/src/render/shaders/row_odd_hex.wgsl index 6e5dc104..f559df20 100644 --- a/src/render/shaders/row_odd_hex.wgsl +++ b/src/render/shaders/row_odd_hex.wgsl @@ -20,7 +20,7 @@ fn get_mesh(v_index: u32, vertex_position: vec3) -> Output { vec2(position.x, position.y), vec2(position.x, position.y + tilemap_data.tile_size.y), vec2(position.x + tilemap_data.tile_size.x, position.y + tilemap_data.tile_size.y), - vec2(position.x + tilemap_data.tile_size.y, position.y) + vec2(position.x + tilemap_data.tile_size.x, position.y) ); position = positions[v_index % 4u];