summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/models/obj/cube/cube.mtl2
-rw-r--r--src/resources/obj.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/assets/models/obj/cube/cube.mtl b/assets/models/obj/cube/cube.mtl
index 9a17b69..aa04436 100644
--- a/assets/models/obj/cube/cube.mtl
+++ b/assets/models/obj/cube/cube.mtl
@@ -10,4 +10,4 @@ Ke 0.0 0.0 0.0
Ni 1.450000
d 1.000000
illum 2
-map_Kd models/obj/cube/container.jpg
+map_Kd container.jpg
diff --git a/src/resources/obj.c b/src/resources/obj.c
index 710d5f0..56f885f 100644
--- a/src/resources/obj.c
+++ b/src/resources/obj.c
@@ -45,11 +45,8 @@ model_handle model_load_obj(core *core, const char *path, bool invert_textures_y
if (!relative_path.has_value) {
WARN("Couldnt get a relative path for the path to use for loading materials & textures later");
}
- printf("Relative path: %s\n", relative_path.path.buf);
const char *file_string = string_from_file(path);
- // TODO: store the relative path without the name.obj at the end
-
model model = { 0 };
model.name = str8_cstr_view(path);
model.meshes = mesh_darray_new(1);