Implement basic glTF loading for sponza

This commit is contained in:
2024-01-16 17:26:34 -05:00
parent 96f2aea4a6
commit 64c1960730
31 changed files with 47325 additions and 331 deletions

View File

@@ -0,0 +1,9 @@
file(GLOB_RECURSE CPP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/**.cpp")
add_library(FGLLoader STATIC ${CPP_SOURCES})
target_include_directories(FGLLoader PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
set_target_properties(FGLLoader PROPERTIES COMPILE_FLAGS ${FGL_CHILD_FLAGS})

View File

@@ -0,0 +1,9 @@
//
// Created by kj16609 on 1/10/24.
//
#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define TINYGLTF_USE_CPP14
#include "tiny_gltf.h"

26753
src/objectloaders/json.hpp Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,6 @@
//
// Created by kj16609 on 1/10/24.
//
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff