This is a GLSL-to-SPIR-V compiler for the Web and Node. It is a WebAssembly build of glslang.
There are several build configurations:
dist/web-min-nocompute: Build for web with only vertex/fragment support and no GLSL compilation messages.
dist/web-devel-nocompute: Build for web with only vertex/fragment support.
dist/web-devel: Build for web with all features.
dist/node-devel: Build for Node with non-async startup and all features. (To use this, just import
You shouldn't need to do this, but here is how you can regenerate the files in
dist/. This should work on macOS (with GNU Bison) and on Linux.
- Make sure Emscripten is on the path (e.g. with emsdk, do
- Make sure you have a recent version of GNU Bison installed.
- Install brotli, cmake, and any other necessary build tools.
- Optionally, clean by deleting