/Lumen-2D

2D javascript renderer using web workers

Primary LanguageJavaScriptMIT LicenseMIT

Lumen 2D javascript renderer

How to use

  1. 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

  2. Download the repo

  3. Inside the script ./libs/createScene.js you can code the scene you want to render

  4. Then simply open index.html with a local server


For an in-depth explanation on how to use Lumen-2D consult the wiki

Credits

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

Thom Chiovoloni - quick-noise.js

dandavis - download.js