Experiments in 2D Radiosity, trying to find the fastest method.
See Experiments here:
- Analytic 2D Radiosity via Visible Angle Computation (based on Analytic Direct Illumination by mathis)
- 2D Line Sweep Radiosity via Isovist Precomputation
- 2D Radiosity via Per-Pixel Raytracing
This can either be run without building (in Chrome/Edge/Opera since raw three.js examples need Import Maps), or built with:
npm install
npm run build
If building manually, make sure to edit the index .html to point from "./src/main.js"
to "./build/main.js"
.