Final.frag.glsl 547 B

12345678910111213141516171819202122232425
  1. // Copyright (C) 2009-2017, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. // The final pass
  6. #include "shaders/Common.glsl"
  7. #include "shaders/Pack.glsl"
  8. layout(ANKI_TEX_BINDING(0, 0)) uniform sampler2D u_tex;
  9. layout(location = 0) in highp vec2 in_texCoord;
  10. layout(location = 0) out vec3 out_color;
  11. void main()
  12. {
  13. vec2 uv = in_texCoord;
  14. #if ANKI_VK
  15. uv.y = 1.0 - uv.y;
  16. #endif
  17. vec3 col = textureLod(u_tex, uv, 0.0).rgb;
  18. out_color = col;
  19. }