summaryrefslogtreecommitdiff
path: root/scene/3d/light_3d.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-04-14 17:05:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-04-14 17:05:45 -0300
commit6f293ed7958d56fb4a8033f04e5ef59e037d2ae7 (patch)
tree5facee58c1dc6ede57f1b8ef3c0c0effed927103 /scene/3d/light_3d.h
parent5e5103f460f406899582e4307e56882401fd37d5 (diff)
Add support for projectors in spot and omni lights.
Diffstat (limited to 'scene/3d/light_3d.h')
-rw-r--r--scene/3d/light_3d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/3d/light_3d.h b/scene/3d/light_3d.h
index 21e14f0e8b..f939d56a70 100644
--- a/scene/3d/light_3d.h
+++ b/scene/3d/light_3d.h
@@ -81,6 +81,7 @@ private:
bool editor_only;
void _update_visibility();
BakeMode bake_mode;
+ Ref<Texture2D> projector;
// bind helpers
@@ -125,6 +126,9 @@ public:
void set_bake_mode(BakeMode p_mode);
BakeMode get_bake_mode() const;
+ void set_projector(const Ref<Texture> &p_texture);
+ Ref<Texture2D> get_projector() const;
+
virtual AABB get_aabb() const;
virtual Vector<Face3> get_faces(uint32_t p_usage_flags) const;
@@ -196,6 +200,8 @@ public:
void set_shadow_mode(ShadowMode p_mode);
ShadowMode get_shadow_mode() const;
+ virtual String get_configuration_warning() const;
+
OmniLight3D();
};