https://github.com/zalo/locuslucis
Light Simulation for HTML Elements
https://github.com/zalo/locuslucis
radiosity styling webgl2
Last synced: 3 months ago
JSON representation
Light Simulation for HTML Elements
- Host: GitHub
- URL: https://github.com/zalo/locuslucis
- Owner: zalo
- License: mit
- Created: 2023-05-31T04:28:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T18:49:14.000Z (almost 2 years ago)
- Last Synced: 2025-01-14T23:40:12.255Z (5 months ago)
- Topics: radiosity, styling, webgl2
- Language: GLSL
- Homepage: https://zalo.github.io/LocusLucis/
- Size: 13.7 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [LocusLucis](https://zalo.github.io/LocusLucis/)
Experiments in 2D Radiosity, trying to find the fastest method.
See Experiments here:
- [Analytic 2D Radiosity via Visible Angle Computation](https://zalo.github.io/LocusLucis/) (based on [Analytic Direct Illumination](https://www.shadertoy.com/view/NttSW7) by mathis)
- [2D Line Sweep Radiosity via Isovist Precomputation](https://raw.githack.com/zalo/LocusLucis/feat-line-sweep/index.html)
- [2D Radiosity via Per-Pixel Raytracing](https://raw.githack.com/zalo/LocusLucis/feat-raytracing/index.html)# Building
This can either be run without building (in Chrome/Edge/Opera since raw three.js examples need [Import Maps](https://caniuse.com/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"`.# Dependencies
- [three.js](https://github.com/mrdoob/three.js/) (3D Rendering Engine)
- [esbuild](https://github.com/evanw/esbuild/) (Bundler)