tigr_upscale_gl_vs.h 565 B

123456789101112131415161718192021222324
  1. #ifndef __TIGR_UPSCALE_GL_VS_H__
  2. #define __TIGR_UPSCALE_GL_VS_H__
  3. #include "tigr_glsl_hdr.h"
  4. // clang-format off
  5. const char tigr_upscale_gl_vs[] = {
  6. GLSL_VERSION_HEADER
  7. "layout (location = 0) in vec2 pos_in;"
  8. "layout (location = 1) in vec2 uv_in;"
  9. "out vec2 uv;"
  10. "uniform mat4 model;"
  11. "uniform mat4 projection;"
  12. "void main()"
  13. "{"
  14. " uv = uv_in;"
  15. " gl_Position = projection * model * vec4(pos_in, 0.0, 1.0);"
  16. "}"
  17. };
  18. // clang-format on
  19. const int tigr_upscale_gl_vs_size = (int)sizeof(tigr_upscale_gl_vs) - 1;
  20. #endif