From 499206dcb39e9ed0c3e21e3c580f556218e0c693 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 28 Dec 2023 16:05:02 -0500 Subject: EntityType falls back to a default texture if not provided --- src/entities.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/entities.hpp') diff --git a/src/entities.hpp b/src/entities.hpp index bdcb3eb..41ae7fd 100644 --- a/src/entities.hpp +++ b/src/entities.hpp @@ -27,10 +27,10 @@ struct EntityType { VkDescriptorPool vkDescriptorPool = VK_NULL_HANDLE; uint32_t startingInstanceCount = 1024; struct Importer_GLTF { - int16_t AccessorIndexVertex = -1; - int16_t AccessorIndexNormal = -1; - int16_t AccessorIndexUV = -1; - int16_t AccessorIndexIndex = -1; + int16_t AccessorIndexVertex = 0; + int16_t AccessorIndexNormal = 1; + int16_t AccessorIndexUV = 2; + int16_t AccessorIndexIndex = 3; } Importer_GLTF; struct { btCollisionShape *shape = nullptr; -- cgit v1.2.3