summaryrefslogtreecommitdiffstats
path: root/modules/gltf/register_types.cpp
diff options
context:
space:
mode:
authoracazuc <acazuc@acazuc.fr>2023-04-28 18:26:01 +0200
committeracazuc <acazuc@acazuc.fr>2023-08-19 10:27:29 +0200
commita00cf02241a1e7772ae1c44c63d95cae08bd53a0 (patch)
tree17beb0dda28acb90d494211f8cdcbd0e89fbd57d /modules/gltf/register_types.cpp
parentff5c884153d1c15bde3ee87aa295e52bec3a6340 (diff)
downloadredot-engine-a00cf02241a1e7772ae1c44c63d95cae08bd53a0.tar.gz
Add support for KTX & KTX2 image format
Add support glTF KHR_texture_basisu extension
Diffstat (limited to 'modules/gltf/register_types.cpp')
-rw-r--r--modules/gltf/register_types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gltf/register_types.cpp b/modules/gltf/register_types.cpp
index 1788ffac3a..c56ad6aedd 100644
--- a/modules/gltf/register_types.cpp
+++ b/modules/gltf/register_types.cpp
@@ -31,6 +31,7 @@
#include "register_types.h"
#include "extensions/gltf_document_extension_convert_importer_mesh.h"
+#include "extensions/gltf_document_extension_texture_ktx.h"
#include "extensions/gltf_document_extension_texture_webp.h"
#include "extensions/gltf_spec_gloss.h"
#include "extensions/physics/gltf_document_extension_physics.h"
@@ -133,6 +134,7 @@ void initialize_gltf_module(ModuleInitializationLevel p_level) {
GDREGISTER_CLASS(GLTFTextureSampler);
// Register GLTFDocumentExtension classes with GLTFDocument.
GLTF_REGISTER_DOCUMENT_EXTENSION(GLTFDocumentExtensionPhysics);
+ GLTF_REGISTER_DOCUMENT_EXTENSION(GLTFDocumentExtensionTextureKTX);
GLTF_REGISTER_DOCUMENT_EXTENSION(GLTFDocumentExtensionTextureWebP);
bool is_editor = ::Engine::get_singleton()->is_editor_hint();
if (!is_editor) {