Added a light, updated screenshots

feature-faces
Mike Lynch 2023-07-28 08:40:27 +10:00
parent f2c6ba9a1c
commit b3a4e43fe0
5 changed files with 11 additions and 2 deletions

View File

@ -4,7 +4,12 @@ FourDjs
Visualisations of four-dimensional polytopes projected into 3-space, rendered Visualisations of four-dimensional polytopes projected into 3-space, rendered
with three.js with three.js
[Basic interactive demo](https://etc.mikelynch.org/fourjs/)
<img src="https://raw.githubusercontent.com/spikelynch/fourdjs/main/docs/screenshot-24cell.png" width="612" /><br />
<img src="https://raw.githubusercontent.com/spikelynch/fourdjs/main/docs/screenshot-120cell.png" width="612" /><br />
<img src="https://raw.githubusercontent.com/spikelynch/fourdjs/main/docs/screenshot-600cell.png" width="612" />
<img src="https://raw.githubusercontent.com/spikelynch/fourdjs/main/docs/screenshot-24cell.png" width="445" />
[Basic interactive demo](https://etc.mikelynch.org/fourjs/)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 KiB

After

Width:  |  Height:  |  Size: 565 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -94,6 +94,10 @@ const light = new THREE.PointLight(0xffffff, 2);
light.position.set(10, 10, 10); light.position.set(10, 10, 10);
scene.add(light); scene.add(light);
const light2 = new THREE.PointLight(0xffffff, 2);
light2.position.set(-10, 5, 10);
scene.add(light);
const amblight = new THREE.AmbientLight(0xffffff, 0.5); const amblight = new THREE.AmbientLight(0xffffff, 0.5);
scene.add(amblight); scene.add(amblight);