summaryrefslogtreecommitdiff
path: root/assets/shaders/shader.vert
diff options
context:
space:
mode:
authorLorenzo Torres <torres@sideros.org>2025-03-29 16:15:56 +0100
committerLorenzo Torres <torres@sideros.org>2025-03-29 16:15:56 +0100
commit16a2a404189cc6b5cd3493df8d19298af7e542ce (patch)
treeeb53b701149498ef0716922c755524f2a8a42821 /assets/shaders/shader.vert
parentfd7973173f163e068deb0ae8f9d6ff0fc31fc71b (diff)
moved rendering to a system.
To ensure that the rendering system is being run in the main thread, I added the concept of "Sync systems", so that when a system group is created it's possible to specify whether it's possible to run it on a separate thread or not.
Diffstat (limited to 'assets/shaders/shader.vert')
-rw-r--r--assets/shaders/shader.vert6
1 files changed, 2 insertions, 4 deletions
diff --git a/assets/shaders/shader.vert b/assets/shaders/shader.vert
index f5353e3..c759755 100644
--- a/assets/shaders/shader.vert
+++ b/assets/shaders/shader.vert
@@ -2,12 +2,10 @@
layout(location = 0) in vec3 vertPos;
-layout(binding = 0) uniform UniformObject {
+layout (binding = 0) uniform Uniform {
mat4 proj;
- mat4 view;
- mat4 model;
} ubo;
void main() {
- gl_Position = ubo.view * ubo.proj * vec4(vertPos, 1.0);
+ gl_Position = ubo.proj * vec4(vertPos, 1.0);
}