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
This commit is contained in:
auria 2013-05-12 01:02:07 +00:00
parent f1fe3e3428
commit 9a17110f33

View File

@ -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 =