From 16a2a404189cc6b5cd3493df8d19298af7e542ce Mon Sep 17 00:00:00 2001 From: Lorenzo Torres Date: Sat, 29 Mar 2025 16:15:56 +0100 Subject: 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. --- assets/shaders/shader.vert | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'assets') 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); } -- cgit v1.2.3