translucent wireframe

This commit is contained in:
2020-03-11 01:06:13 -04:00
parent 8fbf0ae528
commit 5ea2f6ee06
2 changed files with 9 additions and 7 deletions

View File

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