summaryrefslogtreecommitdiffstats
path: root/modules/gltf/gltf_state.h
diff options
context:
space:
mode:
authorThe Tophat Demon <andsotherewas@gmail.com>2021-10-04 10:49:42 -0500
committerLunaticInAHat <maddestofhatters@outlook.com>2022-10-03 16:20:08 -0400
commitc1a600545cb427d36cb421a729147d6fde1600da (patch)
tree5bc444eccf5ad289836044ce80bf87c1e415a2b8 /modules/gltf/gltf_state.h
parent62792eeb9fac4f44272f59f95ec8eb3abc0432a7 (diff)
downloadredot-engine-c1a600545cb427d36cb421a729147d6fde1600da.tar.gz
GLTF imports & exports material texture filters
Diffstat (limited to 'modules/gltf/gltf_state.h')
-rw-r--r--modules/gltf/gltf_state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gltf/gltf_state.h b/modules/gltf/gltf_state.h
index 791431f376..afe7e82010 100644
--- a/modules/gltf/gltf_state.h
+++ b/modules/gltf/gltf_state.h
@@ -42,6 +42,7 @@
#include "structures/gltf_skeleton.h"
#include "structures/gltf_skin.h"
#include "structures/gltf_texture.h"
+#include "structures/gltf_texture_sampler.h"
#include "core/templates/rb_map.h"
#include "scene/animation/animation_player.h"
@@ -77,6 +78,8 @@ class GLTFState : public Resource {
String scene_name;
Vector<int> root_nodes;
Vector<Ref<GLTFTexture>> textures;
+ Vector<Ref<GLTFTextureSampler>> texture_samplers;
+ Ref<GLTFTextureSampler> default_texture_sampler;
Vector<Ref<Texture2D>> images;
Vector<String> extensions_used;
Vector<String> extensions_required;
@@ -149,6 +152,9 @@ public:
TypedArray<GLTFTexture> get_textures();
void set_textures(TypedArray<GLTFTexture> p_textures);
+ TypedArray<GLTFTextureSampler> get_texture_samplers();
+ void set_texture_samplers(TypedArray<GLTFTextureSampler> p_texture_samplers);
+
TypedArray<Texture2D> get_images();
void set_images(TypedArray<Texture2D> p_images);