shader.frag 249 B

123456789101112131415
  1. #version 450 core
  2. layout(location = 0) out vec4 fColor;
  3. layout(set=2, binding=0) uniform sampler2D sTexture;
  4. layout(location = 0) in struct
  5. {
  6. vec4 Color;
  7. vec2 UV;
  8. } In;
  9. void main()
  10. {
  11. fColor = In.Color * texture(sTexture, In.UV.st);
  12. }