暫無描述

123456789101112131415
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. #extension GL_ARB_shading_language_420pack : enable
  4. layout (binding = 0) uniform sampler2D samplerColor;
  5. layout (location = 0) in vec2 inUV;
  6. layout (location = 0) out vec4 outFragColor;
  7. void main()
  8. {
  9. outFragColor = texture(samplerColor, vec2(inUV.s, 1.0 - inUV.t));
  10. }