Files
toddcox-visualize/vis/shaders/stereo-proper.vs.glsl
2020-01-27 18:16:21 -05:00

15 lines
251 B
GLSL

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