Examples using the emscripten renderer xgfx.
ex1- Barebones rendering of a quad.ex2- Barebones fps camera navigation usingglm.ex3- A rewrite of ex2 using a tiny entity component system.ex4- A finite borderless 4d starfield.ex5- A lonely planet in space.ex6- Planet with atmospheric scattering.ex7- Cubemap.ex8- Font rendering using MSDF.ex9- Gui layer with fps counter.
Files from cmake/emcmake end up in subfolders of ./build/.
Files from make/emmake end up in subfolders of ./bin/.
From project root folder build and run first example in firefox:
shl/build_web.sh ex1
shl/run_web.sh ex1
From project root folder build and run first example in osx:
shl/build_desktop.sh ex1
shl/run_desktop.sh ex1
- WebGL stops working in Firefox.
- Open Firefox
about:configand resetgfx.blacklist.webgl.opengl. - Open Firefox
about:supportand clickRefresh Firefox....
- Open Firefox
❧