LfSpritePass.frag.glsl 502 B

123456789101112131415161718192021
  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. // LF sprites frag shader
  6. #include "shaders/Common.glsl"
  7. layout(ANKI_TEX_BINDING(0, 0)) uniform sampler2DArray u_tex;
  8. layout(location = 0) in vec3 in_uv;
  9. layout(location = 1) flat in vec4 in_color;
  10. layout(location = 0) out vec4 out_color;
  11. void main()
  12. {
  13. vec4 col = texture(u_tex, in_uv);
  14. out_color = col * in_color;
  15. }