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