summaryrefslogtreecommitdiff
path: root/scene/2d/light_2d.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-13 01:23:04 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-13 01:23:04 -0300
commita8a1f2e2a864e6b58d5bcf1c7e53a43cdb6d95d9 (patch)
tree39a7c01d77ca73931ad48f14c28eb643d78864bb /scene/2d/light_2d.h
parent95c248e24fb6094160f9c71140402305b57469ab (diff)
-Fixed occluder rendering, closes #8560
-Ability to smooth out 2D shadow filters
Diffstat (limited to 'scene/2d/light_2d.h')
-rw-r--r--scene/2d/light_2d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/light_2d.h b/scene/2d/light_2d.h
index 9b09d54dd8..90e55aeda4 100644
--- a/scene/2d/light_2d.h
+++ b/scene/2d/light_2d.h
@@ -69,6 +69,7 @@ private:
int item_mask;
int item_shadow_mask;
int shadow_buffer_size;
+ float shadow_smooth;
float shadow_gradient_length;
Mode mode;
Ref<Texture> texture;
@@ -146,6 +147,9 @@ public:
void set_shadow_color(const Color &p_shadow_color);
Color get_shadow_color() const;
+ void set_shadow_smooth(float p_amount);
+ float get_shadow_smooth() const;
+
virtual Rect2 get_item_rect() const;
String get_configuration_warning() const;