feat: add obj model loading

Co-authored-by: Chance <caznix01@gmail.com>
This commit is contained in:
BitSyndicate 2025-04-18 23:45:11 +02:00
parent 8632f5a2b2
commit 4a674176cd
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
6 changed files with 269 additions and 184 deletions

View file

@ -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() {

View file

@ -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() {