glsl_shader.frag 249 B

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