initJs
Loads filamat-kmp.wasm (the page must include filamat-kmp.js). Call MaterialBuilder.init and build materials only after onReady fires. Safe to call again.
The compiler runs on a fixed 4 MB wasm stack: a very large shader can overflow it ("memory access out of bounds"), leaving the module unusable until reload. Precompile such materials with matc.