|
|
@ -28,7 +28,6 @@ public class Terrain { |
|
|
|
public Vector2f cell_size = new Vector2f(); |
|
|
|
public Vector2f cell_size = new Vector2f(); |
|
|
|
public Vector2f cell_count = new Vector2f(); |
|
|
|
public Vector2f cell_count = new Vector2f(); |
|
|
|
public float terrain_scale; |
|
|
|
public float terrain_scale; |
|
|
|
|
|
|
|
|
|
|
|
public Vector2f minor_blend; |
|
|
|
public Vector2f minor_blend; |
|
|
|
public Vector2f major_blend; |
|
|
|
public Vector2f major_blend; |
|
|
|
public int heightmap; |
|
|
|
public int heightmap; |
|
|
@ -65,7 +64,7 @@ public class Terrain { |
|
|
|
this.cell_size.x = terrain_size.x / this.cell_count.x; |
|
|
|
this.cell_size.x = terrain_size.x / this.cell_count.x; |
|
|
|
this.cell_size.y = terrain_size.y / this.cell_count.y; |
|
|
|
this.cell_size.y = terrain_size.y / this.cell_count.y; |
|
|
|
|
|
|
|
|
|
|
|
// Blending and scaling configuration
|
|
|
|
// Blending and height scaling configuration
|
|
|
|
|
|
|
|
|
|
|
|
this.major_blend.x = this.zone.max_blend / this.zone.major_radius; |
|
|
|
this.major_blend.x = this.zone.max_blend / this.zone.major_radius; |
|
|
|
this.major_blend.y = this.zone.min_blend / this.zone.major_radius; |
|
|
|
this.major_blend.y = this.zone.min_blend / this.zone.major_radius; |
|
|
|