Skip to content

Commit

Permalink
Sky: Draw bottom of the sky box in 'cloudy fog color'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lhofhansl authored and paramat committed Nov 8, 2016
1 parent e7c62ed commit 739ef17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sky.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 739ef17

Please sign in to comment.