No Description

transparent.vert 572B

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