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
257 B

5 years ago
  1. attribute vec4 position;
  2. attribute vec4 texcoord;
  3. uniform mat4 ModelMatrix;
  4. uniform mat4 ViewMatrix;
  5. uniform mat4 ProjectionMatrix;
  6. varying vec4 V_Texcoord;
  7. void main()
  8. {
  9. V_Texcoord=texcoord;
  10. gl_Position=ProjectionMatrix*ViewMatrix*ModelMatrix*position;
  11. }