summaryrefslogtreecommitdiff
path: root/scene/resources/environment.h
diff options
context:
space:
mode:
authorAnsraer <jacky2611@gmail.com>2022-01-20 16:47:25 +0100
committerAnsraer <jacky2611@gmail.com>2022-01-20 16:47:25 +0100
commit90652b17551b6abd6537e124fd548ae78c39fbea (patch)
treeff72f7d4637329986ac313f898cf4198641a2a92 /scene/resources/environment.h
parenteacde082a557301286f2f6103011863db6752b76 (diff)
add support for glow maps
Diffstat (limited to 'scene/resources/environment.h')
-rw-r--r--scene/resources/environment.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/environment.h b/scene/resources/environment.h
index 3f05315013..b04723a221 100644
--- a/scene/resources/environment.h
+++ b/scene/resources/environment.h
@@ -170,6 +170,8 @@ private:
float glow_hdr_bleed_threshold = 1.0;
float glow_hdr_bleed_scale = 2.0;
float glow_hdr_luminance_cap = 12.0;
+ float glow_map_strength = 0.8f;
+ Ref<Texture> glow_map;
void _update_glow();
// Fog
@@ -360,6 +362,10 @@ public:
float get_glow_hdr_bleed_scale() const;
void set_glow_hdr_luminance_cap(float p_amount);
float get_glow_hdr_luminance_cap() const;
+ void set_glow_map_strength(float p_strength);
+ float get_glow_map_strength() const;
+ void set_glow_map(Ref<Texture> p_glow_map);
+ Ref<Texture> get_glow_map() const;
// Fog