gauss_vert.vs 343 B

1234567891011121314151617181920
  1. #version 150
  2. in vec4 position;
  3. in vec2 texCoord;
  4. out Vertex {
  5. vec2 vTexCoord;
  6. vec2 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.xy * sourceSize[0].xy - vec2(0.0, 0.5);
  14. data_one = sourceSize[0].w;
  15. }