From 0e38088d84135a8e50f39b388fb0b7178b9c1005 Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 7 Feb 2011 02:55:46 +0000 Subject: [PATCH] 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 --- src/graphics/rain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/rain.cpp b/src/graphics/rain.cpp index f3873e9e2..37e3d0104 100644 --- a/src/graphics/rain.cpp +++ b/src/graphics/rain.cpp @@ -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);