cubemap.vert 499 B

12345678910111213141516171819202122
  1. /* cube.vert -- Generic vertex shader for rendering a cube
  2. *
  3. * Copyright (c) 2025-2026 Le Juez Victor
  4. *
  5. * This software is provided 'as-is', without any express or implied warranty.
  6. * For conditions of distribution and use, see accompanying LICENSE file.
  7. */
  8. #version 330 core
  9. layout (location = 0) in vec3 aPosition;
  10. uniform mat4 uMatProj;
  11. uniform mat4 uMatView;
  12. out vec3 vPosition;
  13. void main()
  14. {
  15. vPosition = aPosition;
  16. gl_Position = uMatProj * uMatView * vec4(vPosition, 1.0);
  17. }