Skip to content

Commit 739ef17

Browse files
lhofhanslparamat
authored andcommittedNov 8, 2016
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.
1 parent e7c62ed commit 739ef17

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

Diff for: ‎src/sky.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ void Sky::render()
232232
driver->drawIndexedTriangleFan(&vertices[0], 4, indices, 2);
233233
}
234234

235+
// Draw bottom far cloudy fog thing
236+
video::SColor c = cloudyfogcolor;
237+
vertices[0] = video::S3DVertex(-1, -1.0, -1, 0, 1, 0, c, t, t);
238+
vertices[1] = video::S3DVertex( 1, -1.0, -1, 0, 1, 0, c, o, t);
239+
vertices[2] = video::S3DVertex( 1, -1.0, 1, 0, 1, 0, c, o, o);
240+
vertices[3] = video::S3DVertex(-1, -1.0, 1, 0, 1, 0, c, t, o);
241+
driver->drawIndexedTriangleFan(&vertices[0], 4, indices, 2);
242+
235243
driver->setMaterial(m_materials[2]);
236244

237245
// Draw sunrise/sunset horizon glow texture (textures/base/pack/sunrisebg.png)

0 commit comments

Comments
 (0)
Please sign in to comment.