page transition, optimize lighting

This commit is contained in:
Vincent van der Wal
2026-07-19 10:55:51 +02:00
parent f724cbff6d
commit 99c2851285
21 changed files with 388 additions and 302 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import { makeTube } from './lib/edgeTubes.js';
const { scene, colors, onUpdate } = createStage();
const params = {
scale: 2,
scale: 3,
edges: true,
spokes: true,
fill: true,
@@ -93,10 +93,10 @@ function renderMatrix() {
} );
const spheres = new THREE.Group();
const sphereGeometry = new THREE.SphereGeometry( sphereRadius, 48, 48 );
// no castShadow: the projection stays an outline of edges and spokes
for ( const point of [ centre, ...vertices ] ) {
const sphere = new THREE.Mesh( sphereGeometry, sphereMaterial );
sphere.position.copy( point );
sphere.castShadow = true;
spheres.add( sphere );
}
spheres.visible = params.spheres;