Keine Beschreibung

123456789101112131415161718
  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 (location = 1) in vec3 inNormal;
  6. layout (location = 2) in vec2 inUV;
  7. layout (location = 0) out vec3 outNormal;
  8. layout (location = 1) out vec2 outUV;
  9. void main(void)
  10. {
  11. gl_Position = vec4(inPos.xyz, 1.0);
  12. outNormal = inNormal;
  13. outUV = inUV;
  14. }