summaryrefslogtreecommitdiff
path: root/scene/2d/canvas_item.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/canvas_item.h')
-rw-r--r--scene/2d/canvas_item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/canvas_item.h b/scene/2d/canvas_item.h
index 7c162d9c81..ed3ade9df2 100644
--- a/scene/2d/canvas_item.h
+++ b/scene/2d/canvas_item.h
@@ -81,6 +81,7 @@ private:
bool block_transform_notify;
bool behind;
+ bool use_parent_shader;
Ref<Shader> shader;
mutable Matrix32 global_transform;
@@ -214,6 +215,9 @@ public:
void set_shader(const Ref<Shader>& p_shader);
Ref<Shader> get_shader() const;
+ void set_use_parent_shader(bool p_use_parent_shader);
+ bool get_use_parent_shader() const;
+
void set_shader_param(const StringName& p_param,const Variant& p_value);
Variant get_shader_param(const StringName& p_param) const;