Deduplicate multiple mesh instances

This commit is contained in:
Riyyi
2026-10-31 22:01:10 +01:00
parent 148b511009
commit 6feb0c1575
2 changed files with 95 additions and 83 deletions
+8 -10
View File
@@ -100,20 +100,18 @@ load_test_model :: proc() {
"assets/cube.obj",
cube.vertices,
cube.indices,
true,
0,
)
platform.create_renderable(
"assets/suzanne.obj",
suzanne.vertices,
suzanne.indices,
false,
3,
)
platform.create_renderable(
"assets/suzanne.obj",
suzanne.vertices,
suzanne.indices,
-3,
)
}
// per-object:
// - vertex buffer
// - index buffer
// - uniform buffer (model matrix)
// - texture
// - material
// - 1 drawcall