exploring other rendering styles

This commit is contained in:
2021-02-23 21:18:11 -08:00
parent 14b0948b9c
commit 813d2f6f2f
9 changed files with 61 additions and 30 deletions

20
shaders/bake.vert Normal file
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);
}