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

uniform  mat4 view;
uniform  mat4 projection;
uniform  mat4 model;

layout (location = 0) in vec3 position;
layout (location = 1) in vec2 uvPosition;

out vec2 uvPos;
out vec3 pos;

void main(){
    uvPos = uvPosition;
    pos = position;
    gl_Position = projection*view*model*vec4(position,1);
}