Files
texturecraft/crates/render/src/cage_geometry.rs
T
Rebornim dafbdf3ec7 Bake mode: the Baking Visualization panel and neutral material, as in the reference
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.
2026-11-12 04:33:37 +00:00

14 lines
470 B
Rust

//! A texture set's cage as the renderer takes it
use texturecraft_geom::glam::Vec3;
/// A cage for [`crate::Renderer::set_bake_cage`]: three corners per low-poly triangle, and lines as corner pairs
#[derive(Clone, Copy, Debug)]
pub struct CageGeometry<'a> {
pub corners: &'a [Vec3],
/// The low poly's polygon edges, for the wireframe
pub edges: &'a [[u32; 2]],
/// The low poly's hard edges without a UV seam
pub missing_seams: &'a [[u32; 2]],
}