gallium: add target-helpers/wrap_screen.c to C_SOURCES
[mesa/mesa-lb.git] / progs / vpglsl / varfor1f.glsl
blob9c3e8f2a23898ef6a0ead7be2c03eb911817b4c9
1 const int KernelSize = 16;
2 uniform float KernelValue1f[KernelSize];
4 void main(void)
6     int i;
7     vec4 sum = vec4(0.0);
8     vec4 tmp = gl_Color;
9     gl_Position = gl_Vertex;
11     for (i = 0; i < KernelSize; ++i) {
12         float x, y, z, w;
14         x = KernelValue1f[i]; ++i;
15         y = KernelValue1f[i]; ++i;
16         z = KernelValue1f[i]; ++i;
17         w = KernelValue1f[i];
19         sum += tmp * vec4(x, y, z, w);
20     }
21     gl_FrontColor = sum;