From 085080e95eff2fac0a694b9660a701b5ab3b24a0 Mon Sep 17 00:00:00 2001 From: yasin-ghannam Date: Thu, 11 Jul 2013 00:57:13 +0000 Subject: [PATCH] Team Identifiers(Needs adding hatOffsets to kart models) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/soccer@13176 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/gui/materials.xml | 2 ++ src/graphics/irr_driver.cpp | 4 +++- src/graphics/irr_driver.hpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/gui/materials.xml b/data/gui/materials.xml index 16927e83e..8b9a7fb69 100644 --- a/data/gui/materials.xml +++ b/data/gui/materials.xml @@ -4,5 +4,7 @@ + + \ No newline at end of file diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index e3a2537bb..077c020ac 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -850,12 +850,14 @@ PerCameraNode *IrrDriver::addPerCameraMesh(scene::IMesh* mesh, */ scene::ISceneNode *IrrDriver::addBillboard(const core::dimension2d< f32 > size, video::ITexture *texture, - scene::ISceneNode* parent) + scene::ISceneNode* parent, bool alphaTesting) { scene::IBillboardSceneNode* node = m_scene_manager->addBillboardSceneNode(parent, size); assert(node->getMaterialCount() > 0); node->setMaterialTexture(0, texture); + if(alphaTesting) + node->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF); return node; } // addMesh diff --git a/src/graphics/irr_driver.hpp b/src/graphics/irr_driver.hpp index a7d6b3082..9fc307e47 100644 --- a/src/graphics/irr_driver.hpp +++ b/src/graphics/irr_driver.hpp @@ -159,7 +159,7 @@ public: scene::ISceneNode *parent = NULL); scene::ISceneNode *addBillboard(const core::dimension2d< f32 > size, video::ITexture *texture, - scene::ISceneNode* parent=NULL); + scene::ISceneNode* parent=NULL, bool alphaTesting); scene::IParticleSystemSceneNode *addParticleNode(bool default_emitter=true);