Implement Utah teapot model loading
This commit is contained in:
1 parent
f546f27a42
commit
620cf7606b
8 files changed
+303
-48
No files matched your search
@@ -1,9 +1,9 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 pos;
|
||||
layout(location = 1) in vec3 colour;
|
||||
layout(location = 0) in vec3 position;
|
||||
layout(location = 1) in vec3 normal;
|
||||
|
||||
layout(location = 0) out vec3 frag_colour;
|
||||
layout(location = 0) out vec3 frag_normal;
|
||||
|
||||
layout(push_constant) uniform MVP {
|
||||
mat4 model;
|
||||
@@ -12,6 +12,6 @@ layout(push_constant) uniform MVP {
|
||||
} mvp;
|
||||
|
||||
void main() {
|
||||
gl_Position = mvp.proj * mvp.view * mvp.model * vec4(pos, 1.0);
|
||||
frag_colour = colour;
|
||||
gl_Position = mvp.proj * mvp.view * mvp.model * vec4(position, 1.0);
|
||||
frag_normal = normal;
|
||||
}
|
||||
Reference in new issue
Block a user