summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/object.vert10
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