aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hofhansl <larsh@apache.org>2016-11-06 22:01:21 -0800
committerparamat <mat.gregory@virginmedia.com>2016-11-08 15:20:01 +0000
commit739ef175aa804650ce4f25dfb3cf375d38517660 (patch)
tree06537539360aac5c7a73e868ac5a6b7d1a8e63e7
parente7c62edec90c476b54ea7cf7c44354f1609e4575 (diff)
downloadminetest-739ef175aa804650ce4f25dfb3cf375d38517660.tar.gz
minetest-739ef175aa804650ce4f25dfb3cf375d38517660.tar.bz2
minetest-739ef175aa804650ce4f25dfb3cf375d38517660.zip
Sky: Draw bottom of the sky box in 'cloudy fog color'
To be identical to the lower half of the skybox sides. Now needed as the skybox base is often seen due to increasingly vertical mapgens.
-rw-r--r--src/sky.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sky.cpp b/src/sky.cpp
index 64f8cb5e7..211a2dcdc 100644
--- a/src/sky.cpp
+++ b/src/sky.cpp
@@ -232,6 +232,14 @@ void Sky::render()
driver->drawIndexedTriangleFan(&vertices[0], 4, indices, 2);
}
+ // Draw bottom far cloudy fog thing
+ video::SColor c = cloudyfogcolor;
+ vertices[0] = video::S3DVertex(-1, -1.0, -1, 0, 1, 0, c, t, t);
+ vertices[1] = video::S3DVertex( 1, -1.0, -1, 0, 1, 0, c, o, t);
+ vertices[2] = video::S3DVertex( 1, -1.0, 1, 0, 1, 0, c, o, o);
+ vertices[3] = video::S3DVertex(-1, -1.0, 1, 0, 1, 0, c, t, o);
+ driver->drawIndexedTriangleFan(&vertices[0], 4, indices, 2);
+
driver->setMaterial(m_materials[2]);
// Draw sunrise/sunset horizon glow texture (textures/base/pack/sunrisebg.png)