Use fixed sampling step for prime tower textures

This commit is contained in:
sentientstardust
2026-05-07 11:53:37 +01:00
parent dd2c0f9b29
commit 684747a8b9
2 changed files with 4 additions and 2 deletions

View File

@@ -1448,7 +1448,8 @@ static void prime_tower_textured_path(WipeTowerWriter &writer,
if (texture.sagging_ratio > EPSILON)
width_range = std::min(width_range, layer_height * texture.sagging_ratio);
const float base_extrusion_flow = extrusion_flow * prime_tower_flow_scale_for_width(reference_width, base_width, layer_height);
const float sample_step = std::max(0.35f, base_width);
// const float sample_step = std::clamp(base_width * 0.20f, 0.04f, 0.12f);
const float sample_step = 0.06f;
float travelled = 0.f;
bool have_shifted_pos = false;

View File

@@ -1427,7 +1427,8 @@ static void prime_tower_textured_path(WipeTowerWriter2& writer,
if (texture.sagging_ratio > EPSILON)
width_range = std::min(width_range, layer_height * texture.sagging_ratio);
const float base_extrusion_flow = extrusion_flow * prime_tower_flow_scale_for_width(reference_width, base_width, layer_height);
const float sample_step = std::max(0.35f, base_width);
// const float sample_step = std::clamp(base_width * 0.20f, 0.04f, 0.12f);
const float sample_step = 0.06f;
float travelled = 0.f;
bool have_shifted_pos = false;