17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 20:27:28 +01:00
Files
maszyna/shaders/vk14/quad.vert

28 lines
454 B
GLSL

#version 460 core
#define STAGE_VERTEX 1
#define LAYOUT_POST 1
#include "common.glsl"
const vec2 vert[4] = vec2[]
(
vec2(-1.0, 1.0),
vec2(-1.0, -1.0),
vec2( 1.0, 1.0),
vec2( 1.0, -1.0)
);
const vec2 uv[4] = vec2[]
(
vec2(0.0, 1.0),
vec2(0.0, 0.0),
vec2(1.0, 1.0),
vec2(1.0, 0.0)
);
layout(location = 14) out vec2 f_coords;
void main()
{
gl_Position = vec4(vert[gl_VertexIndex], 0.0, 1.0);
f_coords = uv[gl_VertexIndex];
}