embed shaders in binary

This commit is contained in:
David Allemang
2022-11-16 18:33:07 -05:00
parent aa88aee643
commit 501d2e0685
9 changed files with 114 additions and 35 deletions

View 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;
}