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.

24 lines
678 B

  1. /*******************************************************************************************
  2. *
  3. * rPBR [shader] - Bidirectional reflectance distribution function vertex shader
  4. *
  5. * Copyright (c) 2017 Victor Fisac
  6. *
  7. **********************************************************************************************/
  8. #version 330
  9. // Input vertex attributes
  10. in vec3 vertexPosition;
  11. in vec2 vertexTexCoord;
  12. // Output vertex attributes (to fragment shader)
  13. out vec2 fragTexCoord;
  14. void main()
  15. {
  16. // Calculate fragment position based on model transformations
  17. fragTexCoord = vertexTexCoord;
  18. // Calculate final vertex position
  19. gl_Position = vec4(vertexPosition, 1.0);
  20. }