summaryrefslogtreecommitdiff
path: root/scene/3d/world_environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/world_environment.h')
-rw-r--r--scene/3d/world_environment.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/scene/3d/world_environment.h b/scene/3d/world_environment.h
index 6e89fe8517..3fd3dc0b50 100644
--- a/scene/3d/world_environment.h
+++ b/scene/3d/world_environment.h
@@ -31,13 +31,15 @@
#ifndef SCENARIO_FX_H
#define SCENARIO_FX_H
-#include "scene/3d/spatial.h"
+#include "scene/3d/node_3d.h"
+#include "scene/resources/camera_effects.h"
+#include "scene/resources/environment.h"
class WorldEnvironment : public Node {
-
GDCLASS(WorldEnvironment, Node);
Ref<Environment> environment;
+ Ref<CameraEffects> camera_effects;
protected:
void _notification(int p_what);
@@ -47,7 +49,10 @@ public:
void set_environment(const Ref<Environment> &p_environment);
Ref<Environment> get_environment() const;
- String get_configuration_warning() const;
+ void set_camera_effects(const Ref<CameraEffects> &p_camera_effects);
+ Ref<CameraEffects> get_camera_effects() const;
+
+ String get_configuration_warning() const override;
WorldEnvironment();
};