mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2026-01-24 06:39:20 -05:00
Move shader sources to files.
This commit is contained in:
11
res/shaders/main.frag.glsl
Normal file
11
res/shaders/main.frag.glsl
Normal file
@@ -0,0 +1,11 @@
|
||||
#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