1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add 3d cloud checkbox in main menu (and rename setting from enable_2d_clouds to enable_3d_clouds)

This commit is contained in:
Perttu Ahola 2011-11-02 12:50:21 +02:00
parent f65d157786
commit 0c20973c17
5 changed files with 29 additions and 6 deletions

View file

@ -81,9 +81,9 @@ void Clouds::render()
ScopeProfiler sp(g_profiler, "Rendering of clouds, avg", SPT_AVG);
int num_faces_to_draw = 6;
if(g_settings->getBool("enable_2d_clouds"))
num_faces_to_draw = 1;
int num_faces_to_draw = 1;
if(g_settings->getBool("enable_3d_clouds"))
num_faces_to_draw = 6;
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
driver->setMaterial(m_material);