feat: add obj model loading
Co-authored-by: Chance <caznix01@gmail.com>
This commit is contained in:
parent
8632f5a2b2
commit
4a674176cd
6 changed files with 269 additions and 184 deletions
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 tex_coords;
|
||||
layout(set = 0, binding = 0) uniform texture2D t_diffuse;
|
||||
layout(set = 0, binding = 1) uniform sampler s_diffuse;
|
||||
layout(set = 1, binding = 0) uniform texture2D t_diffuse;
|
||||
layout(set = 1, binding = 1) uniform sampler s_diffuse;
|
||||
layout(location = 0) out vec4 out_color;
|
||||
// layout(group = 0, binding = 0) out texture2D;
|
||||
void main() {
|
||||
|
|
|
@ -4,7 +4,7 @@ layout(location = 0) in vec3 position;
|
|||
layout(location = 1) in vec3 color;
|
||||
layout(location = 3) in vec2 tex_coords;
|
||||
layout(location = 0) out vec2 tex_coord;
|
||||
layout(set = 1, binding = 0) uniform UniformBufferObject {
|
||||
layout(set = 0, binding = 0) uniform UniformBufferObject {
|
||||
mat4x4 projection;
|
||||
} view;
|
||||
void main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue