Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

18 rader
405 B

  1. #version 450 core
  2. #pragma include ./shared.glsl
  3. layout (location = 0) in vec2 inPosition;
  4. layout (location = 1) in vec2 inDirection;
  5. layout (location = 2) in vec4 inColor;
  6. layout (location = 3) in int inTexture;
  7. out VertexData vertexData;
  8. void main() {
  9. vertexData.pos = inPosition;
  10. vertexData.dir = inDirection;
  11. vertexData.color = inColor;
  12. vertexData.texture = inTexture;
  13. }