mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
cdc5f8a912
Rather important for debugging 2d stuff (draw's lines are 2d-only). Other than translucent console, this gets the vulkan draw api back to full operation.
17 lines
336 B
GLSL
17 lines
336 B
GLSL
#version 450
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
|
|
layout (set = 0, binding = 0) uniform
|
|
#include "matrices.h"
|
|
;
|
|
layout (location = 0) in vec2 vertex;
|
|
layout (location = 1) in vec4 vcolor;
|
|
|
|
layout (location = 0) out vec4 color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
gl_Position = Projection2d * vec4 (vertex.xy, 0.0, 1.0);
|
|
color = vcolor;
|
|
}
|