vulkan-tutorial/shaders/shader.frag

13 lines
256 B
GLSL
Raw Normal View History

2023-04-06 15:28:09 -04:00
#version 450
2023-04-19 10:17:19 -04:00
layout(binding = 1) uniform sampler2D texSampler;
2023-04-06 15:28:09 -04:00
layout(location = 0) in vec3 fragColor;
2023-04-19 10:17:19 -04:00
layout(location = 1) in vec2 fragTexCoord;
2023-04-06 15:28:09 -04:00
layout(location = 0) out vec4 outColor;
void main() {
2023-04-19 10:17:19 -04:00
outColor = texture(texSampler, fragTexCoord);
2023-04-06 15:28:09 -04:00
}