fuck intel
This commit is contained in:
@@ -49,9 +49,13 @@ void main() {
|
|||||||
idx = -sign(idx) * (TWOPI - dir); /* Re-correct position values to [-pi, pi) */
|
idx = -sign(idx) * (TWOPI - dir); /* Re-correct position values to [-pi, pi) */
|
||||||
if (INVERT > 0)
|
if (INVERT > 0)
|
||||||
idx = -idx; /* Invert if needed */
|
idx = -idx; /* Invert if needed */
|
||||||
float pos = int(abs(idx) / section) / float(NBARS / 2);
|
float pos = int(abs(idx) / section) / float(NBARS / 2); /* bar position, [0, 1) */
|
||||||
float v = smooth_audio(idx > 0 ? audio_l : audio_r, audio_sz, pos, SMOOTH) * AMPLIFY * (1 + pos);
|
#define smooth_f(tex) smooth_audio(tex, audio_sz, pos, SMOOTH) /* smooth function format */
|
||||||
|
float v;
|
||||||
|
if (idx > 0) v = smooth_f(audio_l); /* left buffer */
|
||||||
|
else v = smooth_f(audio_r); /* right buffer */
|
||||||
|
v *= AMPLIFY * (1 + pos); /* amplify and scale with frequency */
|
||||||
|
#undef smooth_f
|
||||||
d -= C_RADIUS + (float(C_LINE) / 2.0F); /* offset to fragment distance from inner circle */
|
d -= C_RADIUS + (float(C_LINE) / 2.0F); /* offset to fragment distance from inner circle */
|
||||||
if (d <= v - BAR_OUTLINE_WIDTH) {
|
if (d <= v - BAR_OUTLINE_WIDTH) {
|
||||||
#if BAR_OUTLINE_WIDTH > 0
|
#if BAR_OUTLINE_WIDTH > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user