test2Fragment.fs 182 B

12345678910111213
  1. #version 430
  2. layout (binding = 1) uniform sampler2D samp;
  3. in vec2 varTex;
  4. out vec4 color;
  5. void main()
  6. {
  7. float f = texture(samp, varTex).x;
  8. color = vec4(f, f, f, 1.0);
  9. }