Run trail prepass after target bounds resolved

This commit is contained in:
chelsea
2025-12-02 22:39:53 -06:00
parent f766a342c2
commit e0151c626b
2 changed files with 7 additions and 7 deletions

Binary file not shown.

View File

@@ -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;