feat: GPU scissor rect for paper-space viewport wires

Viewport-projected wires now clip at pixel level to their viewport boundary.

- WireModel.vp_scissor: Option<[f32; 4]> — paper-space bbox set on projection
- WireGpu.vp_scissor carries it through to the draw loop
- Pipeline.compute_wire_scissors() converts paper→NDC→pixel each frame
- render() calls set_scissor_rect() per wire, reset after viewport group
- INTEGRATION_GAPS.md: Viewport ⚠️ → ✅, all 51 gaps resolved

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Sonnet 4.6 committed 2026-05-06 07:12:05 +03:00
1 parent 27aca41dd1
commit 899b3f4796
38 files changed
+112 -13

No files matched your search

+1
View File
@@ -135,6 +135,7 @@ impl CadCommand for AttdefCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -528,5 +528,6 @@ fn line_wire(from: Vec3, to: Vec3) -> WireModel {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
}
}
+1
View File
@@ -89,6 +89,7 @@ impl CadCommand for LineCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -114,6 +114,7 @@ impl CadCommand for MlineCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -113,6 +113,7 @@ impl CadCommand for ImageCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+2
View File
@@ -87,6 +87,7 @@ impl CadCommand for RayCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
@@ -166,6 +167,7 @@ impl CadCommand for XLineCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -84,6 +84,7 @@ impl CadCommand for RevCloudCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+2
View File
@@ -120,6 +120,7 @@ impl CadCommand for WipeoutCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
WipeoutMode::Polygonal => {
@@ -142,6 +143,7 @@ impl CadCommand for WipeoutCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -77,6 +77,7 @@ impl CadCommand for AreaCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -72,6 +72,7 @@ impl CadCommand for DistCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
}
+1
View File
@@ -135,6 +135,7 @@ impl CadCommand for StretchCommand {
key_vertices: vec![],
aabb: WireModel::UNBOUNDED_AABB,
plinegen: true,
vp_scissor: None,
})
}
_ => None,