mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-15 00:11:26 +00:00
It is currently an ugly hack for dealing with the separate quad queue, and the pipeline handling code needs a lot of cleanup, but it works quite well, though I do plan on moving to HarfBuzz for text shaping. One nice development is I got updating of descriptor sets working (just need to ensure the set is no longer in use by the command queue, which the multiple frames in flight makes easy).
17 lines
289 B
GLSL
17 lines
289 B
GLSL
#version 450
|
|
|
|
layout (set = 1, binding = 0) uniform sampler2D Texture;
|
|
|
|
layout (location = 0) in vec2 st;
|
|
layout (location = 1) in vec4 color;
|
|
|
|
layout (location = 0) out vec4 frag_color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec4 pix;
|
|
|
|
pix = texture(Texture, st).rrrr;
|
|
frag_color = pix * color;
|
|
}
|