diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-06-06 23:16:17 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-06-07 08:38:21 -0300 |
commit | 840ac8c0187b7cfdc13abf9091f2537b34f6552b (patch) | |
tree | bfc8505ead3e809c7f503b473506b96dd8c94d2b /servers/visual | |
parent | e2d70166fec95dd506ca6b1e2d76248b819081ee (diff) |
Fog is complete!
Diffstat (limited to 'servers/visual')
-rw-r--r-- | servers/visual/rasterizer.h | 4 | ||||
-rw-r--r-- | servers/visual/visual_server_raster.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 723c5737cd..9dfb0b2e71 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -71,6 +71,10 @@ public: virtual void environment_set_adjustment(RID p_env, bool p_enable, float p_brightness, float p_contrast, float p_saturation, RID p_ramp) = 0; + virtual void environment_set_fog(RID p_env, bool p_enable, const Color &p_color, const Color &p_sun_color, float p_sun_amount) = 0; + virtual void environment_set_fog_depth(RID p_env, bool p_enable, float p_depth_begin, float p_depth_curve, bool p_transmit, float p_transmit_curve) = 0; + virtual void environment_set_fog_height(RID p_env, bool p_enable, float p_min_height, float p_max_height, float p_height_curve) = 0; + struct InstanceBase : RID_Data { VS::InstanceType base_type; diff --git a/servers/visual/visual_server_raster.h b/servers/visual/visual_server_raster.h index 957af7b9dd..8c311300ad 100644 --- a/servers/visual/visual_server_raster.h +++ b/servers/visual/visual_server_raster.h @@ -950,6 +950,10 @@ public: BIND6(environment_set_adjustment, RID, bool, float, float, float, RID) + BIND5(environment_set_fog, RID, bool, const Color &, const Color &, float) + BIND6(environment_set_fog_depth, RID, bool, float, float, bool, float) + BIND5(environment_set_fog_height, RID, bool, float, float, float) + /* SCENARIO API */ #undef BINDBASE |