From 671f4d74415dae426e1549adebfda1fd13051758 Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 12 Oct 2013 23:36:34 +0000 Subject: [PATCH] disable z buffer writes on skidmarks git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14248 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/skid_marks.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/skid_marks.cpp b/src/graphics/skid_marks.cpp index 6cf6947a9..f141c8550 100644 --- a/src/graphics/skid_marks.cpp +++ b/src/graphics/skid_marks.cpp @@ -48,6 +48,7 @@ SkidMarks::SkidMarks(const AbstractKart& kart, float width) : m_kart(kart) //m_material->AmbientColor = video::SColor(255, 255, 255, 255); //m_material->DiffuseColor = video::SColor(255, 255, 255, 255); m_material->setFlag(video::EMF_ANISOTROPIC_FILTER, true); + m_material->setFlag(video::EMF_ZWRITE_ENABLE, false); m_material->Shininess = 0; m_material->TextureLayer[0].Texture = irr_driver->getTexture("skidmarks.png"); m_skid_marking = false;