code wiki / _hdl_build / nx_explodelab_material_gate.nx

nx_explodelab_material_gate.nx

buildroot/runtime/_hdl_build/nx_explodelab_material_gate.nx

7506 B224 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic explodelab
docsdependenciesstructsconstsfunctions

about

nx_explodelab_material_gate.nx -- teeth on R-V6 PER-PART MATERIALS + the DEPTH CUE. A material system fails quietly in two ways: the table is filled in but every entry is effectively the same (nothing differentiates, yet "materials" ships), or the per-vertex material id never reaches the rasteriser so the table is dead data. Both look GREEN to any "does it render" check. So: prove the table is differentiated, prove the id survives into the vertex data, prove metal and dielectric highlights behave DIFFERENTLY, prove depth actually attenuates, and prove the frame changes when materials are flattened to one. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_wasm_explodelab.nx nx_explodelab_material_gate.nx

imports: nx_wasm_explodelab.nx

imported by: nobody (leaf or entry point)

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

main ag_w mem_bytes start_at world_init e_ptr ex3_init exl_n exl_kind exl_hx exl_hy exl_hz ex3_part_begin ex3_isqrt exl_dx exl_dy exl_dz exl_depth exm_load exm_k1 exm_k1_v0 ex3_vert exm_k1_t0 ex3_tri exm_k2 exm_k2_v0 ex3_vert ↻ exm_k2_v1 ex3_vert ↻ exm_k2_t0 ex3_tri ↻ exm_k2_t1 ex3_tri ↻ exm_k3 exm_k3_v0 ex3_vert ↻ exm_k3_t0 ex3_tri ↻ exm_k4 exm_k4_v0

structs

none

consts

none

functions

10func ag_w(s: *u8) -> i64
called by 2: ag_toothmain
16func ag_n(v: i64) -> i64
called by 1: main
41func ag_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: ag_w
53func ag_chk(base: i64) -> i64
called by 1: main calls 2: wwhh
65func ag_diff(k1: i64, k2: i64) -> i64
called by 1: main
75func main() -> i64