projects
/
opengl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix skybox images not using the right data layout
[opengl.git]
/
skyboxvert.glsl
1
#version 330
2
3
in vec3 pos;
4
out vec3 localPos;
5
6
uniform mat4 projection;
7
uniform mat4 view;
8
9
void main() {
10
localPos = pos;
11
vec4 fragPos = projection * view * vec4(pos, 1);
12
gl_Position = fragPos.xyww;
13
}