diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-14 22:29:15 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-14 22:29:15 +1100 |
commit | 2b83174a87f5a1e4991cc9153309ad0f73450b44 (patch) | |
tree | cefdd730a82e3e917e2f8813c110b980eb2dfefb | |
parent | 0ae30006abf7ae8940257be1276e55fdec0774c4 (diff) |
fix cube texture path now that we can load relative path
-rw-r--r-- | assets/models/obj/cube/cube.mtl | 2 | ||||
-rw-r--r-- | src/resources/obj.c | 3 |
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); |