A little OpenGL/WebGL demo made with raylib.
Animated and tweak-able flock of butterflies - all computations done on GPU with minimal CPU involvement. Hundreds of thousands of butterflies could be rendered simultaneously. Could be used as a light GPU stress-test.
Clone raylib repository into any suitable directory and build and install it according to the instructions.
Build with the makefile:
make clean
make RAYLIB_PATH=[raylib source directory]
Install Emscripten according to the instructions
Navigate to raylib source directory
cd src
make clean
make PLATFORM=PLATFORM_WEB GRAPHICS=GRAPHICS_API_OPENGL_ES3
mv libraylib.a libraylib.web.a
Navigate back to this repo's directory and build with the makefile:
make -f wasm.mk RAYLIB_PATH=[raylib source directory]
The output web-page files will be stored in the build_web directory.

