No Description

triangle.vert 363B

12345678910111213141516171819202122
  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 inColor;
  6. layout (location = 0) out vec3 outColor;
  7. out gl_PerVertex
  8. {
  9. vec4 gl_Position;
  10. };
  11. void main()
  12. {
  13. outColor = inColor;
  14. gl_Position = vec4(inPos.xyz, 1.0);
  15. }