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.

10 lines
184 B

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