CPU oracle
Collision, AI, Workers, and Node servers evaluate the authoritative ECMAScript f64 tree.
01 Shared field math for 3D worlds · CPU + Three.js TSL
Let CPU collision, buoyancy, forces, and hit tests evaluate the same procedural 3D field that Three.js TSL renders on the GPU—then measure the remaining float drift.
02 The split-world problem
CPU physics, AI, servers, and hit tests cannot sample the vertex shader shaping a 3D world. Copying procedural math into JavaScript and shader code creates two authorities that can drift.
Matter Field makes the pure function authoritative and treats each backend as a materialization of it.
03 One expression tree
export function terrain(A, x, z) {
const n = fbm(A, x, z, 0.0016, 2);
return A.mul(
A.sub(n, A.f(0.5)),
A.f(24)
);
}
Collision, AI, Workers, and Node servers evaluate the authoritative ECMAScript f64 tree.
Pass the caller’s three/tsl namespace. The package never imports Three.js at runtime.
Dual numbers derive normals and tangents from the exact same expression tree.
04 Touch the contract
Each 3D lab lets you manipulate a GPU-rendered surface or form and the CPU gameplay query driven by the same field.
Move across GPU-displaced terrain while the CPU collision oracle samples the same function.
One field drives the GPU-rendered swell and its CPU four-point buoyancy response.
GPU particles reveal the same vector field applying force to a CPU gameplay body.
The vertex-animated 3D creature and CPU hit test evaluate one closed-form trajectory.
Run the same TSL graphs used by the 3D demos on WebGPU or WebGL2 and keep the JSON receipt.
05 Measured, not asserted
Absolute error in field units decides pass/fail. ULP counts remain diagnostic because they explode near zero crossings.
| Hardware | Backend | Max observed abs | Max ULP | u32 hash | Status |
|---|
06 The honest contract
One committed golden agrees in browser, Worker, and supported Node CI.
Eleven raw u32 vectors agree in the current hardware receipts.
Restricted f32 operations tested against a declared absolute field-unit budget on each receipt.
07 Open fieldwork
The parity claim gets stronger through public measurement, not louder marketing. Run the assay, inspect the JSON, and contribute a missing vendor cell.
Run on this hardware