thicker rainbow hex borders
This commit is contained in:
parent
c2112bb451
commit
d90f9cbf94
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue