Added smooth pass option, improved texture lookup performance, fixes #10 (and fixed issues with config copying)

This commit is contained in:
Jarcode
2018-02-03 11:08:28 -08:00
parent dbcecc9def
commit 522d022b70
11 changed files with 240 additions and 99 deletions

View File

@@ -84,7 +84,7 @@ float half_w;
void render_side(in sampler1D tex, float idx) {
highp float pixel = 1.0F / float(screen.x);
float s = smooth_audio_adj(tex, audio_sz, idx / half_w, SMOOTH, pixel);
float s = smooth_audio_adj(tex, audio_sz, idx / half_w, pixel);
/* scale the data upwards so we can see it */
s *= VSCALE;
/* clamp far ends of the screen down to make the ends of the graph smoother */