Mirror lookup

This commit is contained in:
2023-11-18 12:15:27 -05:00
parent 6402d228c0
commit ad6f886e1e
+1 -4
View File
@@ -59,9 +59,6 @@ public class Terrain {
this.cell_count.x = this.image_size.x;
this.cell_count.y = this.image_size.y;
this.cell_size.x = terrain_size.x / this.cell_count.x;
this.cell_size.y = terrain_size.y / this.cell_count.y;
// Blending configuration. These ratios are used to calculate
// the blending area between child and parent terrains when
// they are stitched together.
@@ -160,7 +157,7 @@ public class Terrain {
// Calculate terrain cell with offset
Vector2f terrain_cell = new Vector2f(terrain_loc.x / this.cell_size.x, terrain_loc.y / this.cell_size.y);
Vector2f terrain_cell = new Vector2f(terrain_loc.x / this.cell_count.x, terrain_loc.y / this.cell_count.y);
// Clamp values when standing directly on pole