atagen

monolith

public
Star0
Watch0
913b1f9fe6522e240876980eeec87f70f7e09ba3
1
ssh://brewery@pls.lobotomise.me:33/atagen/monolith.git
crates/render-vk/shaders/quad.vertGlsl11 lines302 B
1
#version 450
2
#extension GL_GOOGLE_include_directive : require
3
#include "push.glsl"
4
5
layout(location = 0) out vec2 v_uv;
6
7
void main() {
8
    vec2 corner = vec2(gl_VertexIndex & 1, gl_VertexIndex >> 1);
9
    v_uv = pc.uv[gl_VertexIndex];
10
    gl_Position = vec4(pc.dst.xy + corner * pc.dst.zw, 0.0, 1.0);
11
}