Fix gltf static mesh loading issues (#14)

* Support u8 / u32 indices

* Skip primitives without vertices

* Add support for non-indexed geometry & skipping primitives

* Fix possible memory leak on error

* Use SSkinnedMesh

* Check indices

* Properly mirror node hierarchy

* Update .gitignore

* Reorder includes

* Add some throws for logic errors

* Fix non-indexed geometry winding order, add unit test

* Address code review comments

* Add matrix transform unit test
This commit is contained in:
Lars Müller
2024-04-15 15:11:37 +02:00
committed by Josiah VanderZee
parent 0faf1320c5
commit 036b40a9d8
7 changed files with 466 additions and 113 deletions

12
.gitignore vendored
View File

@ -23,3 +23,15 @@ scripts/glext.h
# vscode cmake plugin
build/*
# vscode clangd plugin
.cache
compile_commands.json
# build dependencies
_deps
# autogenerated test-related files
**/CTestTestfile.cmake
Testing
DartConfiguration.tcl