diff --git a/private/sdl_gpu_test/util/mesh.cpp b/private/sdl_gpu_test/util/mesh.cpp index f7be770..402df4c 100644 --- a/private/sdl_gpu_test/util/mesh.cpp +++ b/private/sdl_gpu_test/util/mesh.cpp @@ -44,8 +44,8 @@ Mesh loadMesh(const mijin::PathReference& path) for (int vertexIdx = 0; vertexIdx < 3; ++vertexIdx) { const tinyobj::index_t& index = shape.mesh.indices[indexOffset + vertexIdx]; - glm::vec3 normal; - glm::vec2 texcoord; + glm::vec3 normal = {1.f, 0.f, 0.f}; + glm::vec2 texcoord = {0.f, 0.f}; if (index.normal_index > -1) {