pawengine/res/shaders/frag.glsl

12 lines
264 B
Text
Raw Normal View History

2025-04-11 16:50:08 +02:00
#version 450
layout(location = 0) in vec3 fragColor;
layout(location = 1) in vec2 fragUV;
layout(location = 0) out vec4 outColor;
layout(binding = 2) uniform sampler2D texSampler;
void main() {
outColor = texture(texSampler, fragUV) * vec4(fragColor, 1.0);
}