Fixed Windows build.

This commit is contained in:
Patrick 2024-10-01 10:06:49 +02:00
parent f3d926ff14
commit 559ee5f3c3

View File

@ -44,8 +44,8 @@ Mesh loadMesh(const mijin::PathReference& path)
for (int vertexIdx = 0; vertexIdx < 3; ++vertexIdx) for (int vertexIdx = 0; vertexIdx < 3; ++vertexIdx)
{ {
const tinyobj::index_t& index = shape.mesh.indices[indexOffset + vertexIdx]; const tinyobj::index_t& index = shape.mesh.indices[indexOffset + vertexIdx];
glm::vec3 normal; glm::vec3 normal = {1.f, 0.f, 0.f};
glm::vec2 texcoord; glm::vec2 texcoord = {0.f, 0.f};
if (index.normal_index > -1) if (index.normal_index > -1)
{ {