diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-02-11 20:39:22 +0100 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-02-11 20:39:22 +0100 |
commit | 4ecdaa7cd08f4f3ee04cd49f8f2271636ac81e64 (patch) | |
tree | 96c95877250d63ca2d688ad472bd6a46bdc3fbb3 /shaders/shader.vert | |
parent | 35a70d71f62e41d78d68247075ce174f2b6d997a (diff) |
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'shaders/shader.vert')
-rw-r--r-- | shaders/shader.vert | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shaders/shader.vert b/shaders/shader.vert index 48f67d6..181d1bd 100644 --- a/shaders/shader.vert +++ b/shaders/shader.vert @@ -10,6 +10,7 @@ layout(set = 0, binding = 0) uniform mvp { mat4 model; mat4 view; mat4 proj; + uint count; } ubo; layout(push_constant) uniform mesh_data { @@ -17,6 +18,6 @@ layout(push_constant) uniform mesh_data { } mesh; void main() { - gl_Position = ubo.proj * ubo.view * ubo.model * mesh.transform * ubo.model * vec4(in_position, 1.0); - frag_color = gl_Position; + gl_Position = ubo.proj * ubo.view * ubo.model * mesh.transform * vec4(in_position, 1.0); + frag_color = in_color; } |