mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
fix orientation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user