diff options
Diffstat (limited to 'scene/2d/light_2d.h')
-rw-r--r-- | scene/2d/light_2d.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/light_2d.h b/scene/2d/light_2d.h index 65db5c6ee6..7c4e883454 100644 --- a/scene/2d/light_2d.h +++ b/scene/2d/light_2d.h @@ -74,7 +74,7 @@ private: float shadow_smooth; float shadow_gradient_length; Mode mode; - Ref<Texture> texture; + Ref<Texture2D> texture; Vector2 texture_offset; ShadowFilter shadow_filter; @@ -104,8 +104,8 @@ public: void set_editor_only(bool p_editor_only); bool is_editor_only() const; - void set_texture(const Ref<Texture> &p_texture); - Ref<Texture> get_texture() const; + void set_texture(const Ref<Texture2D> &p_texture); + Ref<Texture2D> get_texture() const; void set_texture_offset(const Vector2 &p_offset); Vector2 get_texture_offset() const; |