No Description

scene.vert 314B

123456789101112131415
  1. #version 450
  2. layout (location = 0) in vec3 inPos;
  3. layout (location = 1) in vec3 inNormal;
  4. layout (location = 2) in vec3 inColor;
  5. layout (location = 0) out vec3 outNormal;
  6. layout (location = 1) out vec3 outColor;
  7. void main()
  8. {
  9. outColor = inColor;
  10. outNormal = inNormal;
  11. gl_Position = vec4(inPos.xyz, 1.0);
  12. }