update UBOs

This commit is contained in:
2019-08-19 00:29:33 +02:00
parent af7be04615
commit 9561a6ce0c
3 changed files with 47 additions and 55 deletions

View File

@@ -14,12 +14,9 @@ layout(location = 0) out vec2 tex_coords;
layout(push_constant) uniform PushConstants {
mat4 model;
mat4 view;
mat4 projection;
float time;
} push;
void main() {
gl_Position = push.projection * push.view * push.model * vec4(position, 1.0);
gl_Position = ubo.projection * ubo.view * push.model * vec4(position, 1.0);
tex_coords = uv;
}