Updated default cube to load From Asset Manager

This commit is contained in:
OusmBlueNinja 2024-12-28 12:59:53 -06:00
parent d24505877e
commit f241c5aa9a

View File

@ -160,8 +160,9 @@ void MyEngine::Run()
if (mesh)
{
// printf("Got Valid Mesh Component\n");
mesh->vao = CreateCubeVAO();
mesh->indexCount = 36;
Model * model = g_AssetManager.loadAsset<Model *>(AssetType::MODEL, "assets/models/DefaultCube.obj");
mesh->vao = model->vao;
mesh->indexCount = model->indices.size();
mesh->textureID = g_AssetManager.loadAsset<GLuint>(AssetType::TEXTURE, "assets/textures/wood.png");
}
else