vertex_shader.glsl 874 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * vertex_shader.glsl
  3. *
  4. * Copyright © 2021 vetal .
  5. *
  6. * This file is part of OpenGL_VAO.
  7. *
  8. * OpenGL_VAO is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * OpenGL_VAO is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with OpenGL_VAO. If not, see <http ://www.gnu.org/licenses/>.
  20. */
  21. #version 300 es
  22. layout (location = 0) in vec3 aPos;
  23. out vec3 pos;
  24. void main() {
  25. pos = aPos;
  26. gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
  27. }