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.

22 lines
421 B

  1. #version 330
  2. in vec3 vertexPosition;
  3. in vec3 vertexNormal;
  4. in vec2 vertexTexCoord;
  5. in vec4 vertexColor;
  6. out vec3 fragPosition;
  7. out vec2 fragTexCoord;
  8. out vec4 fragColor;
  9. out vec3 fragNormal;
  10. uniform mat4 mvpMatrix;
  11. void main()
  12. {
  13. fragPosition = vertexPosition;
  14. fragTexCoord = vertexTexCoord;
  15. fragColor = vertexColor;
  16. fragNormal = vertexNormal;
  17. gl_Position = mvpMatrix*vec4(vertexPosition, 1.0);
  18. }