thicker rainbow hex borders

This commit is contained in:
Damocles 2026-04-13 10:55:40 +02:00
parent c2112bb451
commit d90f9cbf94

View file

@ -70,7 +70,7 @@ void main() {
a += 0.12 * wf; a += 0.12 * wf;
// Rainbow shimmer on hex edges when wave passes // Rainbow shimmer on hex edges when wave passes
float edgeWidth = 2.0; float edgeWidth = 5.0;
float edgeFactor = smoothstep(-edgeWidth, 0.0, d); // 0 at interior, 1 at edge float edgeFactor = smoothstep(-edgeWidth, 0.0, d); // 0 at interior, 1 at edge
if (wf > 0.01 && edgeFactor > 0.0) { if (wf > 0.01 && edgeFactor > 0.0) {
// Angle around hex center → hue // Angle around hex center → hue