summaryrefslogtreecommitdiff
path: root/shaders/shader.vert
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-02-11 20:39:22 +0100
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-02-11 20:39:22 +0100
commit4ecdaa7cd08f4f3ee04cd49f8f2271636ac81e64 (patch)
tree96c95877250d63ca2d688ad472bd6a46bdc3fbb3 /shaders/shader.vert
parent35a70d71f62e41d78d68247075ce174f2b6d997a (diff)
transparencyHEADmain
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'shaders/shader.vert')
-rw-r--r--shaders/shader.vert5
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;
}