summaryrefslogtreecommitdiffstats
path: root/scene/3d/light.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-08-19 20:06:40 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-08-19 20:07:21 -0300
commit7e5890d23d882547ae465fb7756b74be5bc1f62b (patch)
treed9e2fa279f9c8ecb9cc2c57164416e9224f66a09 /scene/3d/light.h
parenta80371ce0a2e0f5d64e3fa9b6bbf8dba75724164 (diff)
downloadredot-engine-7e5890d23d882547ae465fb7756b74be5bc1f62b.tar.gz
-Fix all shadow and culling related issues, fixes #9330
Diffstat (limited to 'scene/3d/light.h')
-rw-r--r--scene/3d/light.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/light.h b/scene/3d/light.h
index 22ff5c0763..788e948536 100644
--- a/scene/3d/light.h
+++ b/scene/3d/light.h
@@ -69,6 +69,7 @@ private:
Color shadow_color;
bool shadow;
bool negative;
+ bool reverse_cull;
uint32_t cull_mask;
VS::LightType type;
bool editor_only;
@@ -110,6 +111,9 @@ public:
void set_shadow_color(const Color &p_shadow_color);
Color get_shadow_color() const;
+ void set_shadow_reverse_cull_face(bool p_enable);
+ bool get_shadow_reverse_cull_face() const;
+
virtual Rect3 get_aabb() const;
virtual PoolVector<Face3> get_faces(uint32_t p_usage_flags) const;