pawengine/Shaders/shader.frag
2025-02-09 18:48:25 +01:00

11 lines
264 B
GLSL

#version 450
layout(location = 0) in vec3 fragColor;
layout(location = 1) in vec2 fragUV;
layout(location = 0) out vec4 outColor;
layout(binding = 1) uniform sampler2D texSampler;
void main() {
outColor = texture(texSampler, fragUV) * vec4(fragColor, 1.0);
}