summaryrefslogtreecommitdiff
path: root/modules/gltf/extensions/gltf_light.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-07-26 00:51:53 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-08-28 11:18:22 -0500
commit3d76b91229c469879ec0eb42f54b5e2667270209 (patch)
tree19229a6cf639d546f8baa8eb9e6a90fe0144f34e /modules/gltf/extensions/gltf_light.h
parent006915b4824a91c0e0fc95ac6aa2f70908a0a027 (diff)
Move GLTF light conversion code into GLTFLight
Diffstat (limited to 'modules/gltf/extensions/gltf_light.h')
-rw-r--r--modules/gltf/extensions/gltf_light.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gltf/extensions/gltf_light.h b/modules/gltf/extensions/gltf_light.h
index f0765a1bbc..04980e144c 100644
--- a/modules/gltf/extensions/gltf_light.h
+++ b/modules/gltf/extensions/gltf_light.h
@@ -70,6 +70,12 @@ public:
float get_outer_cone_angle();
void set_outer_cone_angle(float p_outer_cone_angle);
+
+ static Ref<GLTFLight> from_node(const Light3D *p_light);
+ Light3D *to_node() const;
+
+ static Ref<GLTFLight> from_dictionary(const Dictionary p_dictionary);
+ Dictionary to_dictionary() const;
};
#endif // GLTF_LIGHT_H