commit 90cc232
uint
·
2026-10-14 19:19:22 +0000 UTC
parent 9d81de1
use new texture model (pack/textures/NAME.png)
2 files changed,
+2,
-2
+1,
-1
1@@ -107,7 +107,7 @@ static void game_init(int argc, char** argv)
2 renderer_create(&game.ctx);
3 platform_set_mouse_relative(1);
4
5- if (!block_textures_create("assets/resourcepacks/default"))
6+ if (!block_textures_create("assets/resourcepacks/1.8.9/assets/minecraft"))
7 mg_die(MG_EC_TEXTURE_LOAD, "Failed to load block textures");
8
9 camera_init(&game.cam, MG_V3(8.0f, 38.0f, 24.0f));
+1,
-1
1@@ -437,7 +437,7 @@ static i32 texture_load(const char* name)
2 }
3 if (texture_count == BLOCK_TEXTURE_COUNT)
4 return -1;
5- snprintf(path, sizeof(path), "%s/%s.png", pack_path, name);
6+ snprintf(path, sizeof(path), "%s/textures/%s.png", pack_path, name);
7 textures[texture_count] = renderer_texture_load(path);
8 if (textures[texture_count] == MGTEXTURE_INVALID)
9 return -1;