diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-20 12:26:34 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-20 12:26:34 -0400 |
| commit | 3a5ac5ce7a039a07f775aab6e37a423ddf9294ed (patch) | |
| tree | f1269dc9ab68238d2b88cc787408aa80115500d9 /src/entities.cpp | |
| parent | ac9fa36a7b7888f47339d7ddead8b3d395cc3933 (diff) | |
add plane model
Diffstat (limited to 'src/entities.cpp')
| -rw-r--r-- | src/entities.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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) { |
