refactor(render): unify scene rendering paths

Route model, paper, viewport and nested block content through one traversal while preserving leaf renderers. Carry decoded material state into mesh shading and harden solid geometry conversion.
This commit is contained in:
Hakan Seven committed 2026-08-05 21:44:59 +03:00
1 parent afc94dce13
commit b667eeeb05
17 files changed
+2228 -1881

No files matched your search

+5 -2
View File
@@ -84,8 +84,8 @@ pub enum CurvedGen {
phi_min: f32,
phi_max: f32,
},
/// Torus: the two extreme circles of the tube (outer/inner), clipped to the
/// revolution window the face covers.
/// Torus: view-dependent tube silhouette, clipped to both parametric
/// windows the face covers.
Torus {
center: [f32; 3],
center_low: [f32; 3],
@@ -97,6 +97,9 @@ pub enum CurvedGen {
phi_min: f32,
phi_span: f32,
full: bool,
theta_min: f32,
theta_span: f32,
theta_full: bool,
},
}