Temporarily use push constants to set view/projection matrices

This commit is contained in:
2020-06-26 03:40:03 +02:00
parent e755d3b1d8
commit 4121b5e657
3 changed files with 9 additions and 2 deletions

View File

@@ -14,6 +14,8 @@ layout(location = 0) out vec2 tex_coords;
layout(push_constant) uniform PushConstants {
mat4 model;
mat4 view;
mat4 projection;
} push;
out gl_PerVertex {
@@ -21,6 +23,6 @@ out gl_PerVertex {
};
void main() {
gl_Position = ubo.projection * ubo.view * push.model * vec4(position, 1.0);
gl_Position = push.projection * push.view * push.model * vec4(position, 1.0);
tex_coords = uv;
}