summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-08-20 09:50:52 -0300
committerGitHub <noreply@github.com>2020-08-20 09:50:52 -0300
commit4e52c75a981f3704a01f702ffd14cc626ea32ec7 (patch)
tree971079585eb99fe991f22e7606088eeff615a88f /scene
parenteb9cbdc3692bdc77b6114ceb771f72fd6cd91a73 (diff)
parent9d341acf2d315293b3d3aa261230b38ee6e35afd (diff)
Merge pull request #41345 from clayjohn/VULKAN-sky-fog
Add fog to sky shaders
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/environment.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp
index a174c3eebe..ee8e63266d 100644
--- a/scene/resources/environment.cpp
+++ b/scene/resources/environment.cpp
@@ -134,6 +134,7 @@ Color Environment::get_ambient_light_color() const {
void Environment::set_ambient_source(AmbientSource p_source) {
ambient_source = p_source;
_update_ambient_light();
+ _change_notify();
}
Environment::AmbientSource Environment::get_ambient_source() const {
@@ -161,6 +162,7 @@ float Environment::get_ambient_light_sky_contribution() const {
void Environment::set_reflection_source(ReflectionSource p_source) {
reflection_source = p_source;
_update_ambient_light();
+ _change_notify();
}
Environment::ReflectionSource Environment::get_reflection_source() const {
@@ -758,6 +760,7 @@ void Environment::_update_volumetric_fog() {
void Environment::set_volumetric_fog_enabled(bool p_enable) {
volumetric_fog_enabled = p_enable;
_update_volumetric_fog();
+ _change_notify();
}
bool Environment::is_volumetric_fog_enabled() const {