display slice and wireframe simultaneously

This commit is contained in:
2020-01-30 18:40:15 -05:00
parent 109ac9da10
commit e953f0e13d
12 changed files with 203 additions and 105 deletions

12
vis/shaders/solid.fs.glsl Normal file
View File

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