2024-10-13 22:18:37 -06:00
|
|
|
#version 450
|
|
|
|
|
2024-10-16 20:29:19 -06:00
|
|
|
layout(set = 1, binding = 1) uniform sampler2DArray font;
|
2024-10-13 22:18:37 -06:00
|
|
|
|
|
|
|
layout(location = 0) in vec4 fragColor;
|
|
|
|
layout(location = 1) in vec2 fragUV;
|
2024-10-16 20:29:19 -06:00
|
|
|
layout(location = 2) flat in uint code;
|
2024-10-13 22:18:37 -06:00
|
|
|
|
|
|
|
layout(location = 0) out vec4 outColor;
|
|
|
|
|
|
|
|
void main() {
|
2024-10-16 20:29:19 -06:00
|
|
|
outColor = fragColor * texture(font, vec3(fragUV, code));
|
2024-10-13 22:18:37 -06:00
|
|
|
}
|
|
|
|
|