code wiki / _hdl_build / nx_sdfrender_gate.nx
nx_sdfrender_gate.nx
buildroot/runtime/_hdl_build/nx_sdfrender_gate.nx
about
nx_sdfrender_gate.nx -- gate for the SMOOTH-UNION SDF body (sovereign software GPU, continuous surface).
T1 the body renders (solid skin block)
T2 per-pixel shading gradient (SDF-gradient normals -> real lighting)
T3 full figure top->bottom
T4 ★CONTINUOUS: torso-region scanlines each have ONE contiguous run (the parts FUSED, not disjoint blobs) --
the whole point of smooth-union over the rasterized ellipsoids
T5 determinism + PNG knowledge/nx_sdfbody.png
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
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
structs
| none |
consts
| none |
functions
| 13 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func pn(v: i64) -> i64 |
| 26 | func is_skin(px: i64) -> i64 { let r: i64 = px & 255; let b: i64 = (px >> 16) & 255; if r >= b { return 1 } return 0 } called by 1: main |
| 27 | func lum(px: i64) -> i64 { return (px & 255) + ((px >> 8) & 255) + ((px >> 16) & 255) } called by 1: main |
| 29 | func main() -> i64 |