forked from 1b-agent/opencadstudio-upstream
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 <[email protected]>
This commit is contained in:
1 parent
27aca41dd1
commit
899b3f4796
38 files changed
+112
-13
No files matched your search
@@ -135,6 +135,7 @@ impl CadCommand for AttdefCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -528,5 +528,6 @@ fn line_wire(from: Vec3, to: Vec3) -> WireModel {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
}
|
||||
}
|
||||
@@ -89,6 +89,7 @@ impl CadCommand for LineCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -114,6 +114,7 @@ impl CadCommand for MlineCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ impl CadCommand for ImageCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -84,6 +84,7 @@ impl CadCommand for RevCloudCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +77,7 @@ impl CadCommand for AreaCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -72,6 +72,7 @@ impl CadCommand for DistCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -135,6 +135,7 @@ impl CadCommand for StretchCommand {
|
||||
key_vertices: vec![],
|
||||
aabb: WireModel::UNBOUNDED_AABB,
|
||||
plinegen: true,
|
||||
vp_scissor: None,
|
||||
})
|
||||
}
|
||||
_ => None,
|
||||
|
||||
Reference in new issue
Block a user