3 #include "cgmath/cgmath.h"
6 static void destroy(void);
7 static void draw(void);
9 static unsigned int sdr_foo;
11 static struct demoscreen scr = { "testa", init, destroy, 0, 0, 0, 0, draw };
13 void regscr_testa(void)
15 dsys_add_screen(&scr);
20 if(!(sdr_foo = get_sdrprog("sdr/foo.v.glsl", "sdr/foo-notex.p.glsl"))) {
26 static void destroy(void)
30 static void draw(void)
33 float t = dsys_time / 1000.0f;
34 float gap = cgm_lerp(0, 0.01, scr.vis);
36 glUseProgram(sdr_foo);
39 float x0 = i / 8.0f - 1.0f + gap;
40 float x1 = (i + 1) / 8.0f - 1.0f - gap;
41 float y = cgm_lerp(1.0f, noise2((float)i * 1.24f, t), scr.vis);