working intersection - rotating simplex

This commit is contained in:
2018-12-20 11:26:18 -05:00
parent 78195ef8ec
commit 1ee97c5154
6 changed files with 161 additions and 57 deletions

View File

@@ -1,16 +1,11 @@
#version 440 core
layout(location=0) in vec4 pos4;
layout(location=0) in ivec4 vInds;
layout(std140, binding=1) uniform Matrices {
mat4 model;
mat4 view;
mat4 proj;
};
out vec4 pos;
out ivec4 inds;
void main() {
pos = model * pos4;
gl_Position = proj * view * vec4(pos.xyz, -pos.w + 2);
inds = vInds;
gl_Position = vec4(0, 0, 0, 1);
}