code wiki / _hdl_build / nx_face_r2.nx

nx_face_r2.nx

buildroot/runtime/_hdl_build/nx_face_r2.nx

4258 B85 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic face
docsdependenciesstructsconstsfunctions

about

nx_face_r2.nx -- photoreal ladder R2: a HEAD close-up with sculpted facial features (sdf_head), scored by the SAME critic axes as the body so movement is MEASURED, not eyeballed (operator: the critic drives the climb). Reports fine_detail + structure + chroma + head-region-detail (the face_structure proxy) + overall MIN verdict, and compares to the body's 62/1000 CLAY. Writes knowledge/nx_face.png. GREEN = it renders + scores (NOT that it's photoreal). license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_png.nx nx_sdfrender.nx nx_face_r2.nx

imports: nx_syscalls.nxnx_png.nxnx_sdfrender.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ww hh hw sys_write sys_mmap sdf_bytes sdf_head sdf_clear_ops sdf_render sdf_render_rows it_cos4096 it_sin4096 it_sin4096 ↻ sdf_isqrt sdf_shade_ray sdf_eval sdf_ellip sdf_isqrt ↻ sdf_ellip_rot sdf_isqrt ↻ sdf_smax sdf_smin sdf_smin ↻ sdf_isqrt ↻ sdf_softshadow sdf_eval ↻ sdf_gi sdf_abs sdf_isqrt ↻ sdf_eval ↻ sdf_aces sdf_eval_part sdf_ellip ↻ mat_height sk_vnoise sk_hash it_sin4096 ↻ sk_vnoise ↻ sk_pore

structs

none

consts

none

functions

10func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
11func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
20func fclamp(v: i64) -> i64 { if v < 0 { return 0 } if v > 1000 { return 1000 } return v }
called by 1: main
21func fabsi(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
called by 2: f_finef_chroma
22func flum(g: i64) -> i64 { return ((g & 255) + ((g >> 8) & 255) + ((g >> 16) & 255)) / 3 }
called by 1: f_fine
23func ffg(g: i64) -> i64 { let r: i64 = g & 255; let b: i64 = (g >> 16) & 255; if r >= b { return 1 } return 0 }
called by 2: f_finef_chroma
24func fchroma(g: i64) -> i64
called by 1: f_chroma
30func f_fine(fb: *i64, w: i64, h: i64) -> i64
called by 1: main calls 3: ffgflumfabsi
48func f_chroma(fb: *i64, w: i64, h: i64) -> i64
called by 1: main calls 3: ffgfchromafabsi
59func main() -> i64