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

in vec3 pos;

out vec3 facePos;

uniform mat4 model;

layout (std140) uniform Globals {
    mat4 projView;
    uvec2 viewportSize;
    float globalTime;
    float dayTime;
    float gamma;
};

void main() {
    facePos = pos;
    gl_Position = projView * model * vec4(pos, 1);
}