working intersection - rotating simplex
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user