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

View File

@@ -2,11 +2,11 @@
layout(location=2) uniform vec3 c;
in vec4 vpos;
in vec4 pos;
out vec4 color;
void main() {
float d = smoothstep(-2, 2, vpos.z);
float d = smoothstep(-2, 2, pos.z);
color = vec4(c * d, 1);
}