git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

commitfff50d07edab51b6d3e2ee02622fda46ab708f95
parente62402a76e
authorLucas Galante <[email protected]>
date2026-09-20 19:41
Network pane: carve the grid relief into the plate before the wires

Calls the graph's paint_grid_relief inside the content clip where the
gap quads used to be drawn, so the grid is the pane plate shaded, not a
colour laid over it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

 src/render.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/render.rs b/src/render.rs
index 19abc34..5dfcd19 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -456,6 +456,10 @@ impl State {
                 let mut bodies: Vec<(f32, f32, f32, f32, bool)> = Vec::new();
                 let mut overlays: Vec<(f32, f32, f32, f32, [f32; 4])> = Vec::new();
                 let mut seen_node = false;
+                // The grid: relief carved into the pane plate (one lattice +
+                // the two axis grooves), under the wires and nodes. Shading
+                // only, so the pane stays the params plate's material.
+                g.paint_grid_relief(clip, pc);
                 for (qx, qy, qw, qh, qc, cell) in g.geometry_quads_tagged(clip) {
                     if g.is_node_rect(qx, qy, qw, qh) {
                         seen_node = true;