Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

off2f.glsl 330B

123456789101112131415161718
  1. const int KernelSize = 8;
  2. uniform vec2 Offset2f[KernelSize];
  3. uniform vec4 KernelValue4f[KernelSize];
  4. void main(void)
  5. {
  6. int i;
  7. vec4 sum = vec4(0.0);
  8. vec4 tmp = gl_Color;
  9. vec2 rg, ba;
  10. gl_Position = gl_Vertex;
  11. rg = Offset2f[4];
  12. ba = Offset2f[5];
  13. gl_FrontColor = KernelValue4f[0] * vec4(rg, ba);
  14. }