summaryrefslogtreecommitdiffstats
path: root/scene/resources/shader_include.h
diff options
context:
space:
mode:
authorbitsawer <sawerduster@gmail.com>2023-01-27 14:35:20 +0200
committerbitsawer <sawerduster@gmail.com>2023-01-27 14:37:55 +0200
commit0acaccebaf3b1dc6445f8a100a1011b89faa4216 (patch)
tree726a356904ea8162907819411a8467bad177319b /scene/resources/shader_include.h
parent518b9e5801a19229805fe837d7d0cf92920ad413 (diff)
downloadredot-engine-0acaccebaf3b1dc6445f8a100a1011b89faa4216.tar.gz
Fix several shader preprocessor include issues
Diffstat (limited to 'scene/resources/shader_include.h')
-rw-r--r--scene/resources/shader_include.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/shader_include.h b/scene/resources/shader_include.h
index 04f4f5cf84..a8949b327e 100644
--- a/scene/resources/shader_include.h
+++ b/scene/resources/shader_include.h
@@ -42,6 +42,7 @@ class ShaderInclude : public Resource {
private:
String code;
+ String include_path;
HashSet<Ref<ShaderInclude>> dependencies;
void _dependency_changed();
@@ -51,6 +52,8 @@ protected:
public:
void set_code(const String &p_text);
String get_code() const;
+
+ void set_include_path(const String &p_path);
};
class ResourceFormatLoaderShaderInclude : public ResourceFormatLoader {