mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 00:59:29 +01:00
Every overlay gets the reference's colour swatch and eyedropper: the high poly, its matching error, the cage's surface and wireframe (separate, each with an opacity), the missing seams and the project mesh. The panel opens as the reference's does at first launch; its eye hides the baking meshes and greys their rows. Show for selected texture set only filters the cage and the high poly; a hidden high poly leaves the GPU. The UV seam overlay now marks the hard edges the UV layout does not split, on the low poly and the cage, in the 3D and 2D views. The project mesh can show the neutral material, picked in the 3D view's view menu: colour, roughness, metallic, baked AO, an optional baked bent normal, and Quality as importance-sampled reflections per pixel.
13 lines
581 B
Rust
13 lines
581 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,
|
|
/// Corner pairs along the low poly's hard edges without a UV seam
|
|
pub(crate) missing_seams: wgpu::Buffer,
|
|
pub(crate) missing_seam_index_count: u32,
|
|
}
|