From 9fa33ec7a010237aa29855a6c52216b57557efbc Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Sun, 31 May 2026 10:24:27 +0300 Subject: [PATCH] fix(wire_gpu): correct offset calculation for wire midpoint positioning --- src/scene/pipeline/wire_gpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scene/pipeline/wire_gpu.rs b/src/scene/pipeline/wire_gpu.rs index bfdef3830..a0356c748 100644 --- a/src/scene/pipeline/wire_gpu.rs +++ b/src/scene/pipeline/wire_gpu.rs @@ -228,7 +228,7 @@ fn emit_wire_instances(wire: &WireModel, color: [f32; 4], draw_depth: f32) -> Ve .find(|&v| v > 0.0) .unwrap_or_else(|| wire.pattern[0].abs()); // Phase that puts the wire midpoint at the dash center. - let offset = first_dash * 0.5 - total * 0.5; + let offset = first_dash * 0.5 + total * 0.5; for d in dists.iter_mut() { *d += offset; }