textFragment.fs 182 B

12345678910111213
  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. {
  8. color = vec4(varColor, texture(samp, varTex).r);
  9. }