diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-30 21:39:31 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-30 21:39:31 +1100 |
commit | f7b91c2eae24ecb7a20b638246fb849d6c63615a (patch) | |
tree | 4bdf8fd3425db9f0203f7cf1c58464f4be88e720 /assets | |
parent | 16237e6499f47d963df35c0f0c4649900ec98d84 (diff) |
start adding mouse input processing
Diffstat (limited to 'assets')
-rw-r--r-- | assets/shaders/object.vert | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/assets/shaders/object.vert b/assets/shaders/object.vert index 9aaefed..a5097d4 100644 --- a/assets/shaders/object.vert +++ b/assets/shaders/object.vert @@ -9,4 +9,12 @@ layout(set = 0, binding = 0) uniform global_object_uniform { } global_ubo; -void main() { gl_Position = global_ubo.projection * global_ubo.view * vec4(in_position, 1.0); }
\ No newline at end of file +layout(push_constant) uniform push_constants { + mat4 model; // 64 bytes +} +u_push_constants; + +void main() { + gl_Position = + global_ubo.projection * global_ubo.view * u_push_constants.model * vec4(in_position, 1.0); +}
\ No newline at end of file |