Files
minimum-viable-game-engine/shaders/g_buffer_input.vert
2021-03-09 23:07:07 -08:00

17 lines
279 B
GLSL

#version 450
layout(location = 0) in vec4 a_Pos;
layout(set = 0, binding = 0) 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);
}