fix orientation

This commit is contained in:
2020-01-27 18:16:21 -05:00
parent 2c27de54d3
commit 53aa778446
5 changed files with 27 additions and 24 deletions

View File

@@ -1,12 +1,14 @@
#version 430
layout(location=0) uniform mat4 proj;
layout(location=1) uniform mat4 view;
layout(location=0) in vec4 pos;
out vec4 gpos;
out vec4 vpos;
void main() {
gpos = view * pos;
vpos = view * pos;
gl_Position = proj * vec4(vpos.xyz / (1), 1);
gl_PointSize = 5;
}