summaryrefslogtreecommitdiff
path: root/files/shaders/shader1.vert
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-11-11 19:00:10 +0200
committerkartofen <mladenovnasko0@gmail.com>2023-11-11 19:00:10 +0200
commit1e436946514f3a0e9fe3d091394db6b86e06f033 (patch)
treecddf3bb618ade66fd5bd4eacd028a7d54a760e37 /files/shaders/shader1.vert
parent2a733f3d513a7279c1df4efe88fc5386ced2ed14 (diff)
.obj loading
Diffstat (limited to 'files/shaders/shader1.vert')
-rw-r--r--files/shaders/shader1.vert7
1 files changed, 4 insertions, 3 deletions
diff --git a/files/shaders/shader1.vert b/files/shaders/shader1.vert
index de25828..c85f877 100644
--- a/files/shaders/shader1.vert
+++ b/files/shaders/shader1.vert
@@ -6,12 +6,13 @@ layout(binding = 0) uniform uniform_buffer {
mat4 proj;
} ubo;
-layout(location = 0) in vec2 inPosition;
-layout(location = 1) in vec3 inColor;
+layout(location = 0) in vec3 inPosition;
+layout(location = 1) in vec3 iNormal;
+layout(location = 2) in vec3 inColor;
layout(location = 0) out vec3 fragColor;
void main() {
- gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 0.0, 1.0);
+ gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 1.0);
fragColor = inColor;
}