mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
translucent wireframe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user