No Description

skybox.vert 433B

1234567891011121314151617181920212223242526
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. #extension GL_ARB_shading_language_420pack : enable
  4. layout (location = 0) in vec3 inPos;
  5. layout (binding = 0) uniform UBO
  6. {
  7. mat4 projection;
  8. mat4 model;
  9. } ubo;
  10. layout (location = 0) out vec3 outUVW;
  11. out gl_PerVertex
  12. {
  13. vec4 gl_Position;
  14. };
  15. void main()
  16. {
  17. outUVW = inPos;
  18. outUVW.x *= -1.0;
  19. gl_Position = ubo.projection * ubo.model * vec4(inPos.xyz, 1.0);
  20. }