From 9a17110f333e4b3012c9c8093b44e956bff6971d Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 12 May 2013 01:02:07 +0000 Subject: [PATCH] Introduce a bit of random in grass git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12739 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index 664a95b6a..fe766147f 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -1321,7 +1321,7 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m bool fog = World::getWorld()->getTrack()->isFogEnabled(); ((GrassShaderProvider*)m_shaders[GRASS_SHADER])->enableFog(fog); - grass_shaders_times[grass_shaders_times_index] = 0.0f; + grass_shaders_times[grass_shaders_times_index] = (rand() % 500)/500.0f * M_PI * 2.0f; // Material and shaders IGPUProgrammingServices* gpu =