thinking about shaders

This commit is contained in:
2021-02-24 18:30:45 -08:00
parent 813d2f6f2f
commit 7fb89e7d6e
6 changed files with 185 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
#version 450
layout(location = 0) in vec4 a_Pos;
layout(set = 0, binding = 0) uniform Globals {
mat4 u_ViewProj;
};
layout(set = 0, binding = 1) uniform Globals {
mat4 u_ViewProj;
};
layout(set = 1, binding = 0) uniform Entity {
mat4 u_World;
vec4 u_Color;
};
void main() {
gl_Position = u_ViewProj * u_World * vec4(a_Pos);
}