From 5ee0e7a8dbd647b79073beee88e82870e181b363 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sat, 16 Oct 2021 07:45:45 -0400 Subject: Tree that moves around more believably --- themes/dist/output.js | 11 ++++++++++- themes/dist/output.wasm | Bin 56705 -> 57898 bytes 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'themes/dist') diff --git a/themes/dist/output.js b/themes/dist/output.js index 2dd2a7d..79b5f23 100644 --- a/themes/dist/output.js +++ b/themes/dist/output.js @@ -2969,6 +2969,14 @@ var ASM_CONSTS = { function _setTempRet0(val) { setTempRet0(val); } + + function _time(ptr) { + var ret = (Date.now()/1000)|0; + if (ptr) { + HEAP32[((ptr)>>2)] = ret; + } + return ret; + } var GLctx;; var miniTempWebGLFloatBuffersStorage = new Float32Array(288); for (/**@suppress{duplicate}*/var i = 0; i < 288; ++i) { @@ -3051,7 +3059,8 @@ var asmLibraryArg = { "glUniformMatrix4fv": _glUniformMatrix4fv, "glUseProgram": _glUseProgram, "glVertexAttribPointer": _glVertexAttribPointer, - "setTempRet0": _setTempRet0 + "setTempRet0": _setTempRet0, + "time": _time }; var asm = createWasm(); /** @type {function(...*):?} */ diff --git a/themes/dist/output.wasm b/themes/dist/output.wasm index f994bca..8319928 100755 Binary files a/themes/dist/output.wasm and b/themes/dist/output.wasm differ -- cgit v1.2.1