@playcanvas/splat-transform
Version:
CLI tool for 3D Gaussian splat format conversion and transformation
17 lines (12 loc) • 526 B
Markdown
## Build instructions for the webp wasm module
1. Install emsdk and activate it
2. Clone the webp repo and build wasm library:
```
emcmake cmake -S . -B build -DBUILD_SHARED_LIBS=OFF
emmake make -C build
emcc -O3 webp.c build/libwebp.a build/libsharpyuv.a \
-sENVIRONMENT=node -sMODULARIZE=1 -sEXPORT_ES6=1 -sALLOW_MEMORY_GROWTH \
-sEXPORTED_FUNCTIONS='["_webp_encode_rgba","_webp_encode_lossless_rgba","_webp_free","_malloc","_free"]' \
-sEXPORTED_RUNTIME_METHODS='["cwrap","HEAPU8","HEAPU32"]' \
-o webp.mjs
```