summaryrefslogtreecommitdiff
path: root/src/clouds.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-18 13:56:35 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-18 13:56:35 +0300
commit554f7f120c4bc99a2c9c944b951662b95a03a9d4 (patch)
treee1126a1cfa5559c11d957cab1cbcef42de6216b8 /src/clouds.cpp
parent05ab58cd145785867e3836ff025f11ce6fdd9410 (diff)
downloadminetest-554f7f120c4bc99a2c9c944b951662b95a03a9d4.tar.gz
minetest-554f7f120c4bc99a2c9c944b951662b95a03a9d4.tar.bz2
minetest-554f7f120c4bc99a2c9c944b951662b95a03a9d4.zip
Improve rendering and fix tiling in mesh generation
Diffstat (limited to 'src/clouds.cpp')
-rw-r--r--src/clouds.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clouds.cpp b/src/clouds.cpp
index d754cc15e..8981b42d9 100644
--- a/src/clouds.cpp
+++ b/src/clouds.cpp
@@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "noise.h"
#include "constants.h"
#include "debug.h"
+#include "profiler.h"
+#include "main.h" // For g_profiler
Clouds::Clouds(
scene::ISceneNode* parent,
@@ -76,6 +78,8 @@ void Clouds::render()
if(SceneManager->getSceneNodeRenderPass() != scene::ESNRP_SOLID)
return;
+ ScopeProfiler sp(g_profiler, "Rendering of clouds, avg", SPT_AVG);
+
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
driver->setMaterial(m_material);