mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 03:52:48 -05:00
13 lines
204 B
GLSL
13 lines
204 B
GLSL
#version 440
|
|
|
|
layout(location=0) uniform vec4 ucol;
|
|
|
|
layout(location=0) out vec4 col;
|
|
|
|
void main() {
|
|
float d = 1.0 - gl_FragCoord.z;
|
|
d = (d - 0.5) / 0.7 + 0.5;
|
|
col = ucol;
|
|
col.xyz *= d;
|
|
}
|