fragment_shader.glsl 856 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * fragment_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. precision mediump float;
  23. out vec4 FragColor;
  24. in vec3 pos;
  25. void main() {
  26. FragColor = vec4(0.0, 1.0, 0.0, 1);
  27. }