mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-29 21:28:00 +00:00
The 3D view in bake mode gets a Baking Visualization panel (high poly, cage, UV seams, low poly, selected texture set only). The cage is built from the bake's own ray starts (a RayFrame now shared by the bake and the view), so it grows and shrinks with the distance sliders exactly as the rays do, and high-poly vertices the transfer rays cannot reach are drawn red. Refs #330
10 lines
420 B
Rust
10 lines
420 B
Rust
/// One texture set's cage on the GPU: three corners per triangle and the wireframe's corner pairs
|
|
pub(crate) struct CageGpu {
|
|
/// Identifies the corners' order and the edges: a new distance with the same topology only rewrites `corners`
|
|
pub(crate) topology: u64,
|
|
pub(crate) corners: wgpu::Buffer,
|
|
pub(crate) corner_count: u32,
|
|
pub(crate) edges: wgpu::Buffer,
|
|
pub(crate) edge_index_count: u32,
|
|
}
|