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.

11 lines
197 B

4 years ago
4 years ago
4 years ago
  1. attribute vec3 pos;
  2. attribute vec2 texcoord;
  3. varying vec2 V_Texcoord;
  4. void main()
  5. {
  6. vec4 worldPos=vec4(pos,1.0);
  7. V_Texcoord=texcoord;
  8. worldPos.x*=2.0;
  9. worldPos.y*=2.0;
  10. gl_Position=worldPos;
  11. }