summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/vert/fbo.vs
blob: 0e05eafcafe058c93a7a1109a73e6ae5f947adf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#version 330 core

in vec2 pos;
in vec2 uvPos;

out vec2 uv;

layout (std140) uniform Globals {
    mat4 projView;
    mat4 proj;
    mat4 view;
    uvec2 viewportSize;
    vec4 ssaoKernels[64];
    float globalTime;
    float dayTime;
    float gamma;
};

void main() {
    gl_Position = vec4(pos.x, pos.y, 0.0, 1.0); 
    uv = uvPos;
}