Zoom/Linien/Texte: weniger empfindliches Rad, Display-Strichbreite waechst sanft mit dem Zoom, Mindestbreite 1 px, Texte nach Groesse statt alles-oder-nichts ausblenden

This commit is contained in:
karim committed 2026-10-19 23:47:47 +02:00
1 parent 98b85c55ea
commit 129516073c
6 files changed
+68 -16

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ fn vs_main(in : VsIn) -> @builtin(position) vec4<f32> {
if (len > 1e-6) {
unit_px = dir_px / len;
}
let width_px = max(0.6, globals.stroke_px * globals.stroke_scale) * in.packed.w;
let width_px = max(1.0, globals.stroke_px * globals.stroke_scale) * in.packed.w;
let offset_px = unit_px * (width_px * 0.5) * in.packed.z;
return vec4<f32>(clip_p.xy + offset_px / (globals.viewport_px * 0.5), clip_p.z, clip_p.w);
}