Files
texturecraft/crates/render/src/bake_visualization.rs
Rebornim bac53688c1 Bake mode: draw the high poly, the cage and where the bake's rays miss
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
2026-11-07 13:26:38 +00:00

13 lines
434 B
Rust

//! What bake mode's 3D view draws while a bake is set up: the high poly, the cage, the UV seams and the low poly
/// Which parts of the bake setup the 3D view draws
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct BakeVisualization {
pub high_poly: bool,
pub cage: bool,
pub uv_seams: bool,
pub low_poly: bool,
/// Draw the cage, seams and low poly of only this texture set
pub only_set: Option<usize>,
}