-
You need to enable this chrome flag to be able to use this project
--enable-experimental-web-platform-features
This is currently required because the project uses es6 modules inside webworkers
-
Download the repo
-
Inside the script
./libs/createScene.js
you can code the scene you want to render -
Then simply open index.html with a local server
For an in-depth explanation on how to use Lumen-2D consult the wiki
I can't thank Benedikt Bitterli enough for his post The Secret Life of Photons, where he presented the derivation and usage of few BRDFs which I used in this project
Zhang Yuning / codeworm96 for his awesome renderer light2d-rs and his inspiring work with simulating Beer-Lambert absorption in dielectric materials
Nicholas Sherlock - webm-writer-js