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,13 @@
#version 440
layout(location=1) uniform float time;
layout(location=2) uniform mat4 proj;
layout(location=3) uniform mat4 view;
layout(location=0) in vec4 pos;
void main() {
vec3 pos3 = (view * pos).xyz;
gl_Position = proj * vec4(pos3, 1.0);
}