diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-21 08:13:37 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-21 08:13:37 +0100 |
| commit | 4d055080d2ab4b674d5f0fd611ea051e87454a31 (patch) | |
| tree | 1e18a003713f6b4d20d29965fed1d0fee013b520 /src | |
| parent | a10cabbe3a5ae05730c2e76493e42554ee6037ba (diff) | |
make the heptagon effect more interesting
Diffstat (limited to 'src')
| -rw-r--r-- | src/shaders/heptagon.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shaders/heptagon.wgsl b/src/shaders/heptagon.wgsl index 2467527..95d06f1 100644 --- a/src/shaders/heptagon.wgsl +++ b/src/shaders/heptagon.wgsl @@ -27,7 +27,7 @@ fn sdf_heptagon(p: vec2f, r: f32) -> f32 { uv.x * s + uv.y * c ); - let dist = sdf_heptagon(rot_uv, 0.3); + let dist = sdf_heptagon(rot_uv, 0.3 + 0.5 * uniforms.audio_intensity); let color = mix(vec3f(0.2, 0.4, 0.8), vec3f(1.0, 0.8, 0.2), smoothstep(0.01, -0.01, dist)); |
