diff options
| author | mattkae <mattkae@protonmail.com> | 2022-01-22 13:57:55 -0500 | 
|---|---|---|
| committer | mattkae <mattkae@protonmail.com> | 2022-01-22 13:57:55 -0500 | 
| commit | 3f3d1ed1cba61015aa47a6ad9812ae0d30316cc5 (patch) | |
| tree | ba6f5d8aa5114de81f331828ef877a6f4ddebfda /2d/softbody/softbody_2/dist | |
| parent | 19defa9be56588803bbae0f38e2f271a91b9d690 (diff) | |
(mkosarek) Added dots to the spring bodied rectangle
Diffstat (limited to '2d/softbody/softbody_2/dist')
| -rw-r--r-- | 2d/softbody/softbody_2/dist/output.js | 9 | ||||
| -rwxr-xr-x | 2d/softbody/softbody_2/dist/output.wasm | bin | 33390 -> 36383 bytes | 
2 files changed, 9 insertions, 0 deletions
| diff --git a/2d/softbody/softbody_2/dist/output.js b/2d/softbody/softbody_2/dist/output.js index 864fed6..2502d5e 100644 --- a/2d/softbody/softbody_2/dist/output.js +++ b/2d/softbody/softbody_2/dist/output.js @@ -2573,6 +2573,14 @@ var ASM_CONSTS = {        }      } +  function _glBufferSubData(target, offset, size, data) { +      if (GL.currentContext.version >= 2) { // WebGL 2 provides new garbage-free entry points to call to WebGL. Use those always when possible. +        GLctx.bufferSubData(target, offset, HEAPU8, data, size); +        return; +      } +      GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size)); +    } +    function _glClear(x0) { GLctx['clear'](x0) }    function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) } @@ -3062,6 +3070,7 @@ var asmLibraryArg = {    "glBindBuffer": _glBindBuffer,    "glBindVertexArray": _glBindVertexArray,    "glBufferData": _glBufferData, +  "glBufferSubData": _glBufferSubData,    "glClear": _glClear,    "glClearColor": _glClearColor,    "glClearDepth": _glClearDepth, diff --git a/2d/softbody/softbody_2/dist/output.wasm b/2d/softbody/softbody_2/dist/output.wasmBinary files differ index 8f52a3d..4d1241e 100755 --- a/2d/softbody/softbody_2/dist/output.wasm +++ b/2d/softbody/softbody_2/dist/output.wasm | 
