shader100.vert 342 B

1234567891011121314151617181920
  1. #version 100
  2. attribute vec2 texcoord;
  3. attribute vec2 position;
  4. attribute vec4 diffuse;
  5. varying mediump vec2 texcoord_var;
  6. varying lowp vec4 diffuse_var;
  7. uniform mat3 modelviewprojection;
  8. void main(void)
  9. {
  10. texcoord_var = texcoord;
  11. diffuse_var = diffuse;
  12. gl_Position = vec4(vec3(position, 1) * modelviewprojection, 1.0);
  13. }
  14. /* EOF */