You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
280 B
17 lines
280 B
4 years ago
|
#version 450
|
||
|
|
||
|
layout(location = 0) in ivec4 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);
|
||
|
}
|