Switch to 3D geometry
This commit is contained in:
1 parent
4180c4549b
commit
7f4dffc7fb
3 files changed
+11
-10
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 pos;
|
||||
layout(location = 0) in vec3 pos;
|
||||
layout(location = 1) in vec3 colour;
|
||||
|
||||
layout(location = 0) out vec3 frag_colour;
|
||||
@@ -12,6 +12,6 @@ layout(push_constant) uniform MVP {
|
||||
} mvp;
|
||||
|
||||
void main() {
|
||||
gl_Position = mvp.proj * mvp.view * mvp.model * vec4(pos, 0.0, 1.0);
|
||||
gl_Position = mvp.proj * mvp.view * mvp.model * vec4(pos, 1.0);
|
||||
frag_colour = colour;
|
||||
}
|
||||
Reference in new issue
Block a user