Peace zone needs to come from zone tree
This commit is contained in:
@@ -49,8 +49,8 @@ public class Terrain {
|
||||
|
||||
// Configure terrain based on zone properties
|
||||
|
||||
this.terrain_size.x = this.zone.template.major_radius * 2;
|
||||
this.terrain_size.y = this.zone.template.minor_radius * 2;
|
||||
this.terrain_size.x = this.zone.major_radius * 2;
|
||||
this.terrain_size.y = this.zone.minor_radius * 2;
|
||||
|
||||
this.cell_count.x = this.terrain_pixel_data.length - 1;
|
||||
this.cell_count.y = this.terrain_pixel_data[0].length - 1;
|
||||
@@ -62,11 +62,11 @@ public class Terrain {
|
||||
// the blending area between child and parent terrains when
|
||||
// they are stitched together.
|
||||
|
||||
Vector2f major_blend = new Vector2f(this.zone.template.max_blend / this.zone.template.major_radius,
|
||||
this.zone.template.min_blend / this.zone.template.major_radius);
|
||||
Vector2f major_blend = new Vector2f(this.zone.template.max_blend / this.zone.major_radius,
|
||||
this.zone.template.min_blend / this.zone.major_radius);
|
||||
|
||||
Vector2f minor_blend = new Vector2f(this.zone.template.max_blend / this.zone.template.minor_radius,
|
||||
this.zone.template.min_blend / this.zone.template.minor_radius);
|
||||
Vector2f minor_blend = new Vector2f(this.zone.template.max_blend / this.zone.minor_radius,
|
||||
this.zone.template.min_blend / this.zone.minor_radius);
|
||||
|
||||
if (major_blend.y > 0.4f)
|
||||
blend_ratio.x = major_blend.y;
|
||||
|
||||
Reference in New Issue
Block a user