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.

20 lines
408 B

  1. #version 100
  2. attribute vec3 vertexPosition;
  3. attribute vec2 vertexTexCoord;
  4. attribute vec3 vertexNormal;
  5. varying vec2 fragTexCoord;
  6. uniform mat4 projectionMatrix;
  7. uniform mat4 modelviewMatrix;
  8. // NOTE: Add here your custom variables
  9. void main()
  10. {
  11. vec3 normal = vertexNormal;
  12. fragTexCoord = vertexTexCoord;
  13. gl_Position = projectionMatrix*modelviewMatrix*vec4(vertexPosition, 1.0);
  14. }