mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-22 22:20:01 +08:00

Context: When parsing a mesh with primitives that have indices pointing to different buffer views, the VAO will use the last GL_ELEMENT_ARRAY_BUFFER that was bound to it. In this scenario, the mesh will not be rendered properly. When binding a mesh, return VAO and EBOs so that primitives can bind to the proper element array buffer.
Basic glTF viewer
Requirements
- glew
- glfw3
- premake5(linux)
- OpenGL 3.3+ GPU
Build on Linux and macOS
$ premake5 gmake
$ make
Build on Visual Studio
Plese use solution file located at basic
folder.
Limitation
There are so many limitations in this example(e.g. no PBR shader. the shader only shows texture of textures[0] if available).