UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

17 lines (13 loc) 323 B
/** * custom Float32Array allocator * @returns {Float32Array} */ export function allocate_m4() { const result = new Float32Array(16); // initialize to identity matrix by setting diagonal values result[0] = 1; result[5] = 1; result[10] = 1; result[15] = 1; return result; }