slices working; broken orientation

This commit is contained in:
2020-01-28 00:03:09 -05:00
parent 794bf15d7f
commit 88fbe7c9ad
4 changed files with 181 additions and 86 deletions

27
vis/shaders/4d/4d.vs.glsl Normal file
View File

@@ -0,0 +1,27 @@
#version 440 core
layout(std430, binding=1) buffer Positions {
vec4 verts[];
};
layout(std140, binding=1) uniform Matrices {
mat4 proj;
mat4 view;
};
layout(location=0) in ivec4 inds;
out ivec4 vInds;
out gl_PerVertex {
vec4 gl_Position;
float gl_PointSize;
};
void main() {
vInds = inds;
vec4 pos = view * verts[vInds.x];
gl_Position = proj * vec4(pos.xyz, 1);
gl_PointSize = 5;
}