mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
new solver - point generation
This commit is contained in:
12
vis/res/shaders/main.frag.glsl
Normal file
12
vis/res/shaders/main.frag.glsl
Normal file
@@ -0,0 +1,12 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user