gauss_horiz.vs 325 B

1234567891011121314151617181920
  1. #version 150
  2. in vec4 position;
  3. in vec2 texCoord;
  4. out Vertex {
  5. vec2 vTexCoord;
  6. float data_pix_no;
  7. float data_one;
  8. };
  9. uniform vec4 sourceSize[];
  10. void main() {
  11. gl_Position = position;
  12. vTexCoord = texCoord;
  13. data_pix_no = vTexCoord.x * sourceSize[0].x;
  14. data_one = sourceSize[0].z;
  15. }