load shaders from files.

This commit is contained in:
2020-01-10 15:59:23 -05:00
parent f54d34455b
commit 9989933853
7 changed files with 126 additions and 66 deletions

View File

@@ -0,0 +1,12 @@
#version 430
layout(location=2) uniform vec3 c;
in vec4 vpos;
out vec4 color;
void main() {
float d = smoothstep(-2, 2, vpos.z);
color = vec4(c * d, 1);
}