aboutsummaryrefslogtreecommitdiff
path: root/src/guiEngine.cpp
diff options
context:
space:
mode:
authorBen Deutsch <ben@bendeutsch.de>2017-05-07 18:41:47 +0200
committerSmallJoker <mk939@ymail.com>2017-07-05 15:39:49 +0200
commit6bedb6de408d531c1843888edc6576040c368695 (patch)
tree1415a26e8f4f97121687f9ef8b7f21590ea88f8e /src/guiEngine.cpp
parent61a3de42fd9c7c24c06ba8522e4240d4f5e3a04f (diff)
downloadhax-minetest-server-6bedb6de408d531c1843888edc6576040c368695.tar.gz
hax-minetest-server-6bedb6de408d531c1843888edc6576040c368695.zip
Fog effect when camera is inside cloud
Fixes issue #3576 * Clouds now take camera position as 3D, not 2D * Cloud grid filling extracted to gridFilled method * Clouds detect whether camera is inside cloud * Camera in cloud changes fog by overriding sky colors with cloud color * Sun, moon and stars can be temporarily disabled with setBodiesVisible * Disabling fog also disables all "inside cloud" behaviors
Diffstat (limited to 'src/guiEngine.cpp')
-rw-r--r--src/guiEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp
index 5f5b4bbff..65ef1605a 100644
--- a/src/guiEngine.cpp
+++ b/src/guiEngine.cpp
@@ -314,7 +314,7 @@ GUIEngine::~GUIEngine()
void GUIEngine::cloudInit()
{
m_cloud.clouds = new Clouds(m_smgr, -1, rand(), 100);
- m_cloud.clouds->update(v2f(0, 0), video::SColor(255,200,200,255));
+ m_cloud.clouds->update(v3f(0, 0, 0), video::SColor(255,200,200,255));
m_cloud.camera = m_smgr->addCameraSceneNode(0,
v3f(0,0,0), v3f(0, 60, 100));