Browse Source

Mirror lookup

terrain-tweak2
MagicBot 1 year ago
parent
commit
ad6f886e1e
  1. 5
      src/engine/InterestManagement/Terrain.java

5
src/engine/InterestManagement/Terrain.java

@ -59,9 +59,6 @@ public class Terrain {
this.cell_count.x = this.image_size.x; this.cell_count.x = this.image_size.x;
this.cell_count.y = this.image_size.y; 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 // Blending configuration. These ratios are used to calculate
// the blending area between child and parent terrains when // the blending area between child and parent terrains when
// they are stitched together. // they are stitched together.
@ -160,7 +157,7 @@ public class Terrain {
// Calculate terrain cell with offset // 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 // Clamp values when standing directly on pole

Loading…
Cancel
Save