From 3a5ac5ce7a039a07f775aab6e37a423ddf9294ed Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 20 Sep 2023 12:26:34 -0400 Subject: add plane model --- src/entities.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/entities.cpp') diff --git a/src/entities.cpp b/src/entities.cpp index 70b3a58..0c7003c 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -73,6 +73,21 @@ void EntityType_Init() { } } ); + globalEntityTypes.Push( + EntityType { + .modelsDir = "assets/models", + .modelFile = "plane.gltf", + .entityTypeCode = "EntTypePlane", + .entityHandle = ECS_CreateEntity(), + .startingInstanceCount = 16, + .Importer_GLTF = { + .AccessorIndexVertex = 0, + .AccessorIndexNormal = 1, + .AccessorIndexUV = 2, + .AccessorIndexIndex = 3, + } + } + ); VkDescriptorSetLayoutBinding vkDescriptorSetLayoutBindings[2]; for (long i = 0; i < 2; ++i) { -- cgit v1.2.3