Run trail prepass after target bounds resolved
This commit is contained in:
Binary file not shown.
@@ -769,6 +769,13 @@ int main(int argc, char **argv) {
|
|||||||
snow_line = sea_level + 38;
|
snow_line = sea_level + 38;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!have_rect) {
|
||||||
|
min_x = center_x - radius;
|
||||||
|
max_x = center_x + radius;
|
||||||
|
min_z = center_z - radius;
|
||||||
|
max_z = center_z + radius;
|
||||||
|
}
|
||||||
|
|
||||||
/* Global prepass: compute trails based on target area before threading */
|
/* Global prepass: compute trails based on target area before threading */
|
||||||
worldgen_init(&pre_ctx, world_seed, sea_level, snow_line);
|
worldgen_init(&pre_ctx, world_seed, sea_level, snow_line);
|
||||||
pre_ctx.enable_trails = enable_trails;
|
pre_ctx.enable_trails = enable_trails;
|
||||||
@@ -781,13 +788,6 @@ int main(int argc, char **argv) {
|
|||||||
prepass_ready = 1;
|
prepass_ready = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!have_rect) {
|
|
||||||
min_x = center_x - radius;
|
|
||||||
max_x = center_x + radius;
|
|
||||||
min_z = center_z - radius;
|
|
||||||
max_z = center_z + radius;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ensure_dir(out_dir) != 0) {
|
if (ensure_dir(out_dir) != 0) {
|
||||||
fprintf(stderr, "Failed to create output directory: %s\n", out_dir);
|
fprintf(stderr, "Failed to create output directory: %s\n", out_dir);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user