diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-11-11 12:27:52 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-11-11 12:27:52 -0300 |
commit | a7078a4be9f4c44a41e5c7e7a633169b53f78d48 (patch) | |
tree | 35db5242c153b8d3a9732fcd5654e7a5c9d2e4e6 /scene/3d/light.h | |
parent | cacf9ebb7fd8df8845daca9da2fe55456cc179aa (diff) | |
download | redot-engine-a7078a4be9f4c44a41e5c7e7a633169b53f78d48.tar.gz |
Done with lights and shadows (wonder if i'm missing something..)
Diffstat (limited to 'scene/3d/light.h')
-rw-r--r-- | scene/3d/light.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/3d/light.h b/scene/3d/light.h index da28542817..fcf5ce90f9 100644 --- a/scene/3d/light.h +++ b/scene/3d/light.h @@ -52,7 +52,6 @@ public: PARAM_SPOT_ANGLE = VS::LIGHT_PARAM_SPOT_ANGLE, PARAM_SPOT_ATTENUATION = VS::LIGHT_PARAM_SPOT_ATTENUATION, PARAM_SHADOW_MAX_DISTANCE = VS::LIGHT_PARAM_SHADOW_MAX_DISTANCE, - PARAM_SHADOW_DARKNESS = VS::LIGHT_PARAM_SHADOW_DARKNESS, PARAM_SHADOW_SPLIT_1_OFFSET = VS::LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET, PARAM_SHADOW_SPLIT_2_OFFSET = VS::LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET, PARAM_SHADOW_SPLIT_3_OFFSET = VS::LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET, @@ -66,6 +65,7 @@ private: Color color; float param[PARAM_MAX]; + Color shadow_color; bool shadow; bool negative; uint32_t cull_mask; @@ -107,6 +107,9 @@ public: void set_color(const Color& p_color); Color get_color() const; + void set_shadow_color(const Color& p_shadow_color); + Color get_shadow_color() const; + virtual AABB get_aabb() const; virtual DVector<Face3> get_faces(uint32_t p_usage_flags) const; |