From 2c5b724e99bac19b97bbfaebad8a8442084ad562 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Sun, 20 Sep 2026 03:33:24 -0500 Subject: [PATCH] site: soften glass faces and add fine refracted edge light --- deploy/site/ambient.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/site/ambient.js b/deploy/site/ambient.js index b8d7082..23931ee 100644 --- a/deploy/site/ambient.js +++ b/deploy/site/ambient.js @@ -154,10 +154,12 @@ context.beginPath();context.moveTo(...a);context.lineTo(...b);context.lineTo(...c);context.closePath(); context.fillStyle=`rgba(${pigment},${illumination*.022})`;context.fill(); context.save();context.clip(); - context.fillStyle=`rgba(${pigment},${illumination*.75})`;context.fill(surface.faces); - context.fillStyle=`rgba(${pigment},${illumination*.2})`;context.fill(surface.shadows); + context.fillStyle=`rgba(${pigment},${illumination*.70})`;context.fill(surface.faces); + context.fillStyle=`rgba(${pigment},${illumination*.18})`;context.fill(surface.shadows); context.strokeStyle=`rgba(${pigment},${illumination})`; - context.lineWidth=.32;context.stroke(surface.edges); + context.lineWidth=.30;context.stroke(surface.edges); + context.strokeStyle=`rgba(170,205,212,${illumination*light*.12})`; + context.lineWidth=.18;context.stroke(surface.edges); context.restore(); context.beginPath();context.moveTo(...a);context.lineTo(...b); context.strokeStyle=`rgba(${pigment},${illumination*.09})`; -- 2.51.2