mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 17:19:24 +01: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
12 lines
426 B
Rust
12 lines
426 B
Rust
/// The high poly bake mode draws over the low poly
|
|
pub(crate) struct HighPolyGpu {
|
|
/// Which mesh the buffers hold
|
|
pub(crate) id: u64,
|
|
pub(crate) vertices: wgpu::Buffer,
|
|
pub(crate) vertex_count: usize,
|
|
pub(crate) indices: wgpu::Buffer,
|
|
pub(crate) index_count: u32,
|
|
/// One value per vertex: 1 where the bake's rays miss it (drawn red), 0 where they reach it
|
|
pub(crate) missed: wgpu::Buffer,
|
|
}
|