Skip to content

Commit f895250

Browse files
AudioShaderVisualizer
1 parent 9f39933 commit f895250

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

components/livekit/audio-visualizer/audio-shader-visualizer/audio-shader-visualizer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function AudioShaderVisualizer({
100100

101101
const volume = useTrackVolume(audioTrack as TrackReference, {
102102
fftSize: 512,
103-
smoothingTimeConstant: 0.5,
103+
smoothingTimeConstant: 0.55,
104104
});
105105

106106
useEffect(() => {
@@ -198,10 +198,10 @@ export function AudioShaderVisualizer({
198198
frequencyControlsRef.current?.stop();
199199
brightnessControlsRef.current?.stop();
200200

201-
scaleValue.set(0.3 - 0.05 * volume);
201+
scaleValue.set(0.35 - 0.05 * volume);
202202
amplitudeValue.set(0.5 + 0.2 * volume);
203-
frequencyValue.set(1 - 1 * volume);
204-
brightnessValue.set(1.0 + 2.0 * volume);
203+
frequencyValue.set(1 - 0.3 * volume);
204+
brightnessValue.set(1.5 + 1.0 * volume);
205205
}
206206
}, [state, volume, scaleValue, amplitudeValue, frequencyValue, brightnessValue]);
207207

components/ui/shadcn-io/aurora-shaders/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ float getSdf(vec2 st) {
5151
}
5252
5353
vec2 turb(vec2 pos, float t, float it) {
54-
mat2 rot = mat2(0.6, -0.8, 0.8, 0.6);
54+
// mat2 rot = mat2(0.6, -0.8, 0.8, 0.6);
55+
mat2 rot = mat2(0.6, -0.25, 0.25, 0.9);
5556
float freq = mix(2.0, 15.0, uFrequency);
5657
float amp = uAmplitude;
5758
float xp = 1.4;

0 commit comments

Comments
 (0)