textFragment.fs 182 B

123456789101112
  1. #version 430
  2. layout (binding = 0) uniform sampler2D samp;
  3. in vec2 varTex;
  4. in vec3 varColor;
  5. out vec4 color;
  6. void main() {
  7. color = vec4(varColor, texture(samp, varTex).r);
  8. }