aboutsummaryrefslogtreecommitdiff
path: root/shaders/skybox.vert
blob: 2ab8497b6df5ede01e3ad7b8ac641defc776ffc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 120

attribute vec3 in_pos;

varying vec3 tex_coords;

uniform mat4 proj;
uniform mat4 view;

void main() {
	tex_coords = in_pos;
	vec4 pos = proj * mat4(mat3(view)) * vec4(in_pos, 1.0);
	gl_Position = pos.xyww;
}