Mirror lookup
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user