disable Z buffer write for rain, will avoid some potential issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
42f279aa53
commit
0e38088d84
@ -44,6 +44,7 @@ Rain::Rain(irr::scene::ISceneNode* parent)
|
||||
|
||||
buffer->Material.setTexture(0, m->getTexture());
|
||||
m->setMaterialProperties(&buffer->Material);
|
||||
buffer->Material.ZWriteEnable = false;
|
||||
buffer->Material.BackfaceCulling = false;
|
||||
|
||||
m_materials.push_back(&buffer->Material);
|
||||
|
Loading…
Reference in New Issue
Block a user