Added cfg paths

This commit is contained in:
Jarcode
2017-12-09 12:05:26 -08:00
parent be68dd931a
commit 49f4ce735b
10 changed files with 42 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ uniform int audio_sz;
with 'setavgwindow'.
*/
#include "../graph.glsl"
#include ":graph.glsl"
#request uniform "audio_l" audio_l
#request transform audio_l "window"
@@ -57,7 +57,7 @@ uniform sampler1D audio_r;
out vec4 fragment;
#include "../util/smooth.glsl"
#include ":util/smooth.glsl"
/* distance from center */
#define CDIST (abs((screen.x / 2) - gl_FragCoord.x) / screen.x)
@@ -95,7 +95,12 @@ void render_side(in sampler1D tex, float idx) {
s *= 1 + BDIST;
/* and finally set fragment color if we are in range */
if (gl_FragCoord.y + 1.5 <= s) {
#if INVERT > 0
float pos = float(screen.y) - gl_FragCoord.y;
#else
float pos = gl_FragCoord.y;
#endif
if (pos + 1.5 <= s) {
fragment = COLOR;
} else {
fragment = vec4(0, 0, 0, 0);